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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MIkkelHyldig
Helper II
Helper II

SUM on a SUMX measure

Hi, 

Currently I use a measure to display number of store with amount over 120.000 using this measure 

Measure 1 =
SUMX(DISTINCT(Store[StoreKey]),IF('Measures.'[Stock Posting Amount DKK Dev.] > 120000,1,0)).

This returns 200 stores for the selected month in my filter. (in this case august 2022)

Additionally, I have a table with item categories where I wish to divide the total Stock Posting Amount DKK Dev. per category by 200 using a measure. 
Measure 2 = DIVIDE('Measures.'[Stock Posting Amount DKK Dev.] [Measure 1])


However the tabel filters only return distinct store keys with [Stock Posting Amount DKK Dev.] > 120000 by item category.

Item categoryStock Posting Amount DKK Dev.Measure 1 Desired result for Measure 1Desired for Measure 2
A10.000180200500
B50.000120200250
C2.000020010


How do I create a measure 2 that ignores the row context? Or do you guys have another solution? 

Thanks a lot! 


Mikkel

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

Hi @MIkkelHyldig ,

 

ignores the row context,please use ALLSELECTED(). But i do not understand what you want. Please provide more detail about how to calcualte.

10000/200 = 500 ?

 

Best Regards

Community Support Team _ chenwu zhu

 

 

 

View solution in original post

2 REPLIES 2
MIkkelHyldig
Helper II
Helper II

@v-chenwuz-msft 
Works perfectly with ALLSELECTED()

Thanks! 

v-chenwuz-msft
Community Support
Community Support

Hi @MIkkelHyldig ,

 

ignores the row context,please use ALLSELECTED(). But i do not understand what you want. Please provide more detail about how to calcualte.

10000/200 = 500 ?

 

Best Regards

Community Support Team _ chenwu zhu

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.