Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
79 | |
47 | |
45 | |
32 |
User | Count |
---|---|
172 | |
90 | |
66 | |
46 | |
45 |