Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
95 | |
80 | |
77 | |
66 |
User | Count |
---|---|
130 | |
106 | |
105 | |
86 | |
72 |