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
Bruno_Soares_25
Regular Visitor

Calculated Measure not showing the column total

I've been trying to fix this last week sales for a while and its working on a row basis but as a column its not giving me the total which I need for other measures.

 

Basically i've got this formula

 

Prev Cost =
CALCULATE(
    SUM(table[Cost (EUR)]),
FILTER(
        ALL('table'),
        'table'[Date] < MIN('table'[Date]) &&
        'table'[Date] >= MIN('table'[Date]) - 7
    )
)
Bruno_Soares_25_0-1711025567711.png

 

This is the outcome which on a row to row basis is correct but its not giving me any total column value, I've tried a bunch of things but im pretty new to DAX also so need a buoy 

 

Thanks

 

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

Hi @Bruno_Soares_25 ,

 

We can create a new measure.

Measure =
SUMX ( SUMMARIZE ( 'Table', [Year], [Week], "pre", [Prev Cost] ), [pre] )

Then the result is as follows.

vtangjiemsft_0-1711435036945.png

Best Regards,

Neeko Tang

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-tangjie-msft
Community Support
Community Support

Hi @Bruno_Soares_25 ,

 

We can create a new measure.

Measure =
SUMX ( SUMMARIZE ( 'Table', [Year], [Week], "pre", [Prev Cost] ), [pre] )

Then the result is as follows.

vtangjiemsft_0-1711435036945.png

Best Regards,

Neeko Tang

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

lbendlin
Super User
Super User

What is your expected result?  Keep in mind that the row totals section will have ALL the selected dates, and therefore your filter will fall off the lower end of the date range, returning nothing.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.