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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fanhui3
Helper I
Helper I

Sum measure is cannot be filtered by year

Hi, 

 

I am trying to compare a companies' operating cashflow (10 years of data) with it's capital expediture (5 years of data). I created a sum measure for each of them. However, when I put them graph, either of the measure is not filtered by the year (depend of the number of years I display) and instead, reflected the grand total across the year. 


May I know what did I do wrong? Thank you.

Cap Spending Problem.pngOperating Cash problem.png

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @fanhui3 ,

 

We can create a meausre as below to get the running total.

Measure = 
MAX ( 'Table'[Opearting  Cash Flow] )
    + CALCULATE (
        SUM ( 'Table'[Spending] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Year] <= MAX ( 'Table'[Year] ) )
    )

 

Capture.PNG

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi Sorry, that's not it. I want it to display operating cashflow against the capital spending for the respective years. However, no matter what i try, one of the 2 values are displayed in total sum. I have re-displayed both tables in table format side by side for comparison. (see below). 

 

I could send you a copy of my powerbi dashboard. Maybe it would be easier if we all have the same file to take reference to? Thank you. 

Blank row.png

amitchandak
Super User
Super User

Which graph are you trying? Is it muti card KPI? Put into the matrix and check the values.

Ideally, You Fact/s should be joined with date dimension and you are viewing by year.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.