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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Measure to identify sum = zero for a member not successful

Dear forum members,,

 

I have a rather easy appearing topic, but just can't get to the right DAX formula.

 

I'd like to show whether a part number (Sys_Plant_CAM) has a value equal zero in a certain column [lo_indreq] or not. The only obstacle is that the part number has various rows for single dates - some zero and some not zero.

 

I thought it would not be difficult using a Measure like the following to fill the total sum for all those part numbers:

CALCULATE(
    SUM('v_md04_latest'[lo_indreq]),
    ALLSELECTED('v_md04_latest'[Sys_Plant_CAM])
)
 
And then add a clolumn verifying whether the value in this measure is zero or not:
PIR_Y_N_2 = if(v_md04_latest[lo_indreq total for Sys_Plant_CAM]>0, "Y", "N")
 
But the measure does not show the total sum but always the distinct value, hence also the new column is not showing a unique value bot always depending on the date column:
Volker_1-1638290609054.png

 

Thanks for any help how to solve the issue.

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I think you want this instead:

CALCULATE (
    SUM ( 'v_md04_latest'[lo_indreq] ),
    ALLEXCEPT ( 'v_md04_latest', 'v_md04_latest'[Sys_Plant_CAM] )
)

You want to remove all filters except the Sys_Plant_CAM.

View solution in original post

3 REPLIES 3
AlexisOlson
Super User
Super User

I think you want this instead:

CALCULATE (
    SUM ( 'v_md04_latest'[lo_indreq] ),
    ALLEXCEPT ( 'v_md04_latest', 'v_md04_latest'[Sys_Plant_CAM] )
)

You want to remove all filters except the Sys_Plant_CAM.

Anonymous
Not applicable

Thanks Alexis,

it worked perfectly as expected.

Anonymous
Not applicable

Try:

 

CALCULATE(
    SUM('v_md04_latest'[lo_indreq]),
    ALL('v_md04_latest'[calmonth]))
 
--Nate

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Kudoed Authors