Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don'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.

Reply
freginier
Impactful Individual
Impactful Individual

Repeat result sum on all rows

Hi all, 

 

I have this kind of table :

CategoryProjectAmount
CAT1Project110
CAT1Project220
CAT2Project330
CAT3Project4

40

CAT3Project5

50

 

I want to summurize CAT3 and repeat the value for all rows but I want don't display CAT3. 

Result expected :

CategoryProjectAmountCAT3
CAT1Project11090
CAT1Project22090
CAT2Project330

90

 

How can I do this with DAX ? 

 

Thank you ! 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Use this measure:

CAT3 value = CALCULATE (SUM(Table[Amount]), Table[Category] = "CAT3")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

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:-

Samarth_18_0-1655200963113.png

 

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

PaulDBrown
Community Champion
Community Champion

Use this measure:

CAT3 value = CALCULATE (SUM(Table[Amount]), Table[Category] = "CAT3")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric Community.