Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, I am a new to Dax and struggling to achieve the below. Appreciate any help and advice:
I have a table with duplicates. I want to create a virtual table with Summarize with Sumx function as below
Virtual_Table = SUMMARIZE(SALES_TABLE,SALES_TABLE[ITEM],"SALES_AMT",SUMX(SALES_TABLE,SALES_TABLE[UNIT PRICE]*SALES_TABLE[QTY]))
Sales_Table (already in Power BI):
Desired Result:
However, I am getting this output:
Solved! Go to Solution.
@panatb Use this instead:
Virtual_Table =
ADDCOLUMNS(
SELECTCOLUMNS( SALES_TABLE, "ITEM", [ITEM] ),
"SALES_AMT", [UNIT PRICE] * [QTY]
)
@panatb Use this instead:
Virtual_Table =
ADDCOLUMNS(
SELECTCOLUMNS( SALES_TABLE, "ITEM", [ITEM] ),
"SALES_AMT", [UNIT PRICE] * [QTY]
)
User | Count |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |