I have a series of table that breakdown the users per product usage. I have also created a summary table. In the summary table i want to sum the total number of users on a for each product using the product name to dynamically search there designated table. The product tables are created using the product name with the exception that spaces have been replaced with "_". For Example DynCRMSrvcPrvdr ALNG LicSAPk MVL SAL will have a table name DynCRMSrvcPrvdr_ALNG_LicSAPk_MVL_SAL
For some reason when i try the reference the table and sum column 'count' i get an error
=SUM(INDIRECT(SUBSTITUTE(E4," ","_")&"["&Count&"]"))
The "COUNT" column header name should as well be within the quotation marks. Please try the corrected formula:
=SUM(INDIRECT(SUBSTITUTE(E4," ","_")&"[Count]"))
Related
I have been provided with two tables 1. sales table and 2.Items and it's characters. (The second table has two or more lines for one item if it has more than one characters)
I am trying to get the sum of sales value for the items based on its characters.
I have created a unique characters table and a unique material tables to link to other tables
In power pivot I am able to get the sum of sales by the material in U_Material, but if I include the Characters from U_Item and characters, then I am getting all the characters in the table and the sum, but actually it has only one characters (other characters are repeated with same value). what can i do to solve this.
if I don't include the materials or put them in filter then I get the overall sales value in the output but not as per the category.
Please let me know what I am doing wrong.
The problem is in your model. Your Fact table "Sales" are filtered only by U_Item any of your other tables don't have an impact on it; You should change the model to star/snowflake. Put "Sales" in the center, rest of your tables (Dimension) connect by relationship one to many (many on Sales side);
I would like to group and sum a table based on values (just like a pivot table would do, but without it) but without using it.
Example Table:
For example, in this query I would like to group each row that contains the same RU and TP and sum the Balance Value.
I tried using the group by like this Group by:
but it does not return every RU possible, if a value is in the TP column it does not appear in RU column.
EDIT1: My table starts like this
and when I group and sort using group by in query the result is
the result is what I want, but as you can see, the 0156 and 0195 RUs, for some reason, are deleted from my table, and a lot of others RUs too.
i am trying to create a calculated column in Excel which should contain values from related tables. I tried looking into the Lookup function but this looks too complicated for my knowledge.
I have an Incident table where i want to have a calculated Column named closdBy. In this column i want to put the name of the operator that closed the incident. Every incident has many mutation entries which are stored in a Mutations table. This Mutations table has 1 statusID which comes from another related table named Status
In the calculated Field closedBy i want the calculated column to display the Name of the operator whose name matches the statusID Closed The name of the operator comes from the Operator table.
Anyone can help me with this ? Would appreciate it a lot.
POWER BI Example: https://ufile.io/z0g4x
Excel Example: https://ufile.io/6adju
required result in incident table (download PowerBI file) :
I have made some modification in relationship between table incident and mutation
created a column in mutation table
ID_Closed = IF(Mutation[statusID]="{CLO}",Mutation[ID],CONCATENATE(Mutation[ID],Mutation[statusID]))
Hoping this will help!
This is how my table looks like. The mutation table can have the same value for status (see {CLO} but I want to have the field Closed By and Resolved by in the Incident table to display the most recent Operator.
I have here an adjusted PowerBi file with more data:
https://ufile.io/20u0v
I have 2 tables, I want to add a calculated column in Table 1, to show how many License IDs in Table 2.(the yellow column is what I want to add in Spotfire)
for example REF ID=A001, A0002 have one license id in Table 2, A0007 has 2(18845682,ABCDEFG), A0008 has zero
if I do not join these 2 tables, how to meet my needs?
attached two tables, please see the attachment
New requirement, also add the license id to table 1, only display license id when column e =1
#user1994358- An easy way to accomplish this is, add pivot transformation to Table2 which counts LICENSE ID. Now, add this column LICENSE ID_COUNT to Table1 by matching REF ID in both the tables.
Similar question posted on SO few days back, please check the below link.
Spotfire lookup a value from a calculated column
Below are the screenshots:
Modified Answer:
As per your latest requirement, here is the modified answer.
Using this solution, Table2 need not be pivoted. Instead, add a calculated column get_license to Table2 with the expression below. This expression shows license ID's with license count = 1.
If(Count([License ID]) over ([REF ID])=1,[License ID],null)
Note: You can show LIC_count as a separate column with expression Count([License ID]) over ([REF ID]).
Now, add this calculated column to Table1 by matching REF_ID.
Final output:
is it possible to have a single pivot table that combines 2 worksheets as the data?
For example, first data table will be made up of the following columns:
ID/Details/Category
The second data table will be made up of the following columns:
ID/Customer name
The reason why the 2 tables are not combined is because there may be many customer names to the same customer name.
I want a pivot table that will show me the following things:
1) Be able to sort by ID and see for each ID the details linked to that ID sorted by category
2) Be able to sort by customer name and see the details linked to that customer sort by category.
Thank you for your help.
Press Alt+D+P. Select multiple consolidation ranges, choose your two ranges of data, and you've got it.