Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I have this kind of table :
Category | Project | Amount |
CAT1 | Project1 | 10 |
CAT1 | Project2 | 20 |
CAT2 | Project3 | 30 |
CAT3 | Project4 | 40 |
CAT3 | Project5 | 50 |
I want to summurize CAT3 and repeat the value for all rows but I want don't display CAT3.
Result expected :
Category | Project | Amount | CAT3 |
CAT1 | Project1 | 10 | 90 |
CAT1 | Project2 | 20 | 90 |
CAT2 | Project3 | 30 | 90 |
How can I do this with DAX ?
Thank you !
Solved! Go to Solution.
Use this measure:
CAT3 value = CALCULATE (SUM(Table[Amount]), Table[Category] = "CAT3")
Proud to be a Super User!
Paul on Linkedin.
Hi @freginier ,
Create a measure as below :-
Measure =
CALCULATE (
SUM ( 'Table'[Amount] ),
FILTER ( ALL ( 'Table' ), 'Table'[Category] = "CAT3" )
)
and now add filter as below on your visual:-
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Use this measure:
CAT3 value = CALCULATE (SUM(Table[Amount]), Table[Category] = "CAT3")
Proud to be a Super User!
Paul on Linkedin.