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
camelia_
Frequent Visitor

How to make a measure summarized

hiii,

I have this measure,

 

Gain / Loss = IF(COUNT('Sample Transactions'[Buy/sell reference])= -1, SUM('Sample Transactions'[Total Trade Price*])-SUM('Price'[PRICE] ) / SUM('Price'[PRICE]), IF(COUNT('Sample Transactions'[Buy/sell reference])=1, -1*(SUM('Sample Transactions'[Total Trade Price*])-SUM('Price'[PRICE])) / SUM('Price'[PRICE]),""))

 

I am not sure how to make this measure summarize since under the measure tools>properties don't have the summarize option. In order for me to put it in the card visualisation, because currently since my measure is not summarized, the card indicates blank visualisation.

 

Can someone help me? Thank in advance!

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

Hi @camelia_,

 

You may try create a new measure to complete the summarize for you.

Summarized_Gain/Loss = SUMX('Sample Transactions',[ConditionalSum])

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please provide some sample data in your tables and let me know their relationships. Thanks a lot!

 

Best Regards,    

Community Support Team _ Caiyun

View solution in original post

1 REPLY 1
v-cazheng-msft
Community Support
Community Support

Hi @camelia_,

 

You may try create a new measure to complete the summarize for you.

Summarized_Gain/Loss = SUMX('Sample Transactions',[ConditionalSum])

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please provide some sample data in your tables and let me know their relationships. Thanks a lot!

 

Best Regards,    

Community Support Team _ Caiyun

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! Prices go up Feb. 11th.

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.