Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
HI,
a,b,c,d values are presented in same matrix format as below. I want to write a DAX measure for Formula1 and Final Formula. Can you pls let me know how to achieve it in DAX?
Solved! Go to Solution.
when you put this measure in you matrix, the grand total will give the result of (B2*D2)+(B6*D6)
say, the field of "Test1","Test2" is F1, and F2 is the field of a,b,c,d
NewMeasure =
IF (
ISFILTERED ( Table[F1] ),
IF (
ISFILTERED ( Table[F2] ),
BLANK (),
DIVIDE (
SUMX ( VALUES ( Table[F2] ), [Val1] * [Val2] ),
SUMX ( VALUES ( Table[F2] ), [Val1] )
)
),
SUMX ( SUMMARIZE ( Table, Table[F1], Table[F2] ), [Val1] * [Val2] )
)
Thank you so much @wdx223_Daniel . Can you please help to get DAX for final formula?
(B2*D2)+(B6*D6) .
B2 - sum of value (a +b) and D2= value which I get from formula1.
B6 -sum of value(c+d) and D6 = value which I get from formula1. I have to show it in card visual.
when you put this measure in you matrix, the grand total will give the result of (B2*D2)+(B6*D6)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |