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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Bruno_Soares_25
Frequent 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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.