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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
eddd83
Resolver I
Resolver I

Displaying a running total on a card

In my table, X-High, High, Medium and Low are all measures. Total is just a measure summing the previous 4 measures. All-running total is the running total for the first 4 measures, while X-high + high running total is just the running total for X-high + high.

 

 

upload to forum.PNG

Is there a way of displaying the final value (21 & 10) for both "all running total" and "x-high + high running total" on a card like so......

 

upload to forum 2.PNG

 

Here are the running total measures if it helps

 

All Running Total =
SUMX (
    FILTER (
        ALLSELECTED ( 'Date'[Date] ),
        'Date'[Date] <= SELECTEDVALUE ( 'Date'[Date] )
    ),
    'Report Measures'[Total]
)
X-High + High Running Total = 
SUMX (
    FILTER (
        ALLSELECTED ( 'Date'[Date] ),
        'Date'[Date] <= SELECTEDVALUE ( 'Date'[Date] )
    ),
    'Report Measures'[High] + 'Report Measures'[X-High]
)
1 ACCEPTED SOLUTION
eddd83
Resolver I
Resolver I

Ok. I managed to figure out a halfway solution. If I use a bar chart and change to a date hierarchy, I get the result that I want.

BTW, how do i upload an image in the reply? I entered the url for the image, and it just gves an "X". and there's no option in "insert/edit image" to scan my PC for the picture.

View solution in original post

2 REPLIES 2
eddd83
Resolver I
Resolver I

Ok. I managed to figure out a halfway solution. If I use a bar chart and change to a date hierarchy, I get the result that I want.

BTW, how do i upload an image in the reply? I entered the url for the image, and it just gves an "X". and there's no option in "insert/edit image" to scan my PC for the picture.

AlB
Community Champion
Community Champion

Hi @eddd83 

Try changing

SELECTEDVALUE ( 'Date'[Date] )

for

MAX ( 'Date'[Date] )

in both measures. SELECTEDVALUE will by default return NULL when more than one date is present in the filter context. You could also do:

SELECTEDVALUE ( 'Date'[Date] ,  MAX ( 'Date'[Date] ) )

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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