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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sabine_toulouse
New Member

Measure but I want sum in Grand total et not the calcuation of my measure

Hello,

 

I create a measure, i put it in matrix but i want in grand total calculate sum not the calculate of my measure, How i can do that ? 

 

Thanks

 

Sabine V

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @sabine_toulouse  ,

 

Here are the steps you can follow:

 

1. According to your description, I created sample data.

v-yangliu-msft_4-1602237879828.png

 2. First, suppose you have a measure and find that the sum calculated by this metric is incorrect.

Measure_Sum =
IF(SUM('Table'[Amount])<1000,0,SUM('Table'[Amount]))

3. Then to calculate the sum, you can create a measure.

Calculate Sum =
var Table1=SUMMARIZE('Table','Table'[Date],"_value",[Measure_Sum])
return IF(HASONEVALUE('Table'[Date]),[Measure_Sum],SUMX(Table1,[_value]))

 4. Result.

v-yangliu-msft_5-1602237879830.jpeg

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @sabine_toulouse  ,

 

Here are the steps you can follow:

 

1. According to your description, I created sample data.

v-yangliu-msft_4-1602237879828.png

 2. First, suppose you have a measure and find that the sum calculated by this metric is incorrect.

Measure_Sum =
IF(SUM('Table'[Amount])<1000,0,SUM('Table'[Amount]))

3. Then to calculate the sum, you can create a measure.

Calculate Sum =
var Table1=SUMMARIZE('Table','Table'[Date],"_value",[Measure_Sum])
return IF(HASONEVALUE('Table'[Date]),[Measure_Sum],SUMX(Table1,[_value]))

 4. Result.

v-yangliu-msft_5-1602237879830.jpeg

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PaulDBrown
Community Champion
Community Champion

@sabine_toulouse 

It sounds like you need to use ISINSCOPE, but without further information it's hard to help. Can you show the relevante measures, the expected outcome/result and if possible a sample datset or PBIX file?





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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.