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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bshewchu
New Member

Cumulative Total

Get this error when I try to run a measure for cumulative total 

 

A single value for column 'Date' in table 'JBER 16/34 120 Day Airfield Schedule - 2023' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

Can someone help me out my measure i am trying to run is 

Cumulative Total = CALCULATE(SUM('JBER 16/34 120 Day Airfield Schedule - 2023'[Manhours]),FILTER(ALL('JBER 16/34 120 Day Airfield Schedule - 2023'[Discipline]),'JBER 16/34 120 Day Airfield Schedule - 2023'[Date]<=MAX('JBER 16/34 120 Day Airfield Schedule - 2023'[Date].[Date])))
1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @bshewchu ,

 

If your ALL() adds the name of the specified column instead of the name of the table, then only the specified column or measure will come out, and no other columns will appear.

Refer to:

ALL function (DAX) - DAX | Microsoft Learn

Here are the steps you can follow:

1. If the result you want is not related to [Discipline], you can modify Dax to the following:

Cumulative Total = CALCULATE(
    SUM('JBER 16/34 120 Day Airfield Schedule - 2023'[Manhours]),FILTER(ALL('JBER 16/34 120 Day Airfield Schedule - 2023'),'JBER 16/34 120 Day Airfield Schedule - 2023'[Date]<=MAX('JBER 16/34 120 Day Airfield Schedule - 2023'[Date])))

2. Result:

vyangliumsft_0-1681718521862.png

If the above results do not match your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

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

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @bshewchu ,

 

If your ALL() adds the name of the specified column instead of the name of the table, then only the specified column or measure will come out, and no other columns will appear.

Refer to:

ALL function (DAX) - DAX | Microsoft Learn

Here are the steps you can follow:

1. If the result you want is not related to [Discipline], you can modify Dax to the following:

Cumulative Total = CALCULATE(
    SUM('JBER 16/34 120 Day Airfield Schedule - 2023'[Manhours]),FILTER(ALL('JBER 16/34 120 Day Airfield Schedule - 2023'),'JBER 16/34 120 Day Airfield Schedule - 2023'[Date]<=MAX('JBER 16/34 120 Day Airfield Schedule - 2023'[Date])))

2. Result:

vyangliumsft_0-1681718521862.png

If the above results do not match your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors