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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Finding running total based on legends used in the chart

HI Everyone,

 

I was trting to find running total for each category of sales.Its working fine if i select one legend from  the slicer.If all selected it is showing as percentage in grand total for each legend

 

How can i show Runninig total for each legend????

 

Below is the formula i have used in the calcualtion.

Running Total = CALCULATE(COUNT('OD Database'[Column]),
FILTER(
ALLSELECTED('OD Database'[Column]),
'OD Database'[Column]<=MAX('OD Database'[Column])
),VALUES('OD Database'[Mode_Toll]
))
 
 
 
Thanks
Yamuna
5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Please read my screenshot below.

Part 1 is my data, 

Part 2 is what i assume your scenario is,

Part 3 is measures i created.

Measure 2 =
CALCULATE (
    COUNT ( Sheet1[column] ),
    FILTER (
        ALLEXCEPT ( Sheet1, Sheet1[cate] ),
        [column] <= MAX ( Sheet1[column] )
    )
)


Measure 3 = CALCULATE(COUNT(Sheet1[column]),ALLEXCEPT(Sheet1,Sheet1[cate]))

Measure 4 = [Measure 2]/[Measure 3]

1.png

 

Best Regards

Maggie

Anonymous
Not applicable

Thanks for your reply maggie,

 

I have attached sample workboook.I am trying to replicate same table data into line chart.

Line chart showing correct values when i select single mode from the slicer but when we are showing all modes....values are dividng to modes wise.

 

Any help on this.

 

https://drive.google.com/open?id=16bNozzPxDGZ15G5s1LDxzshxWSEXgpkQ

 

 

Thanks

Yamuna

 

 

 

Anonymous
Not applicable

Hi,

 

any one got solution for the above?

 

Thanks

Yamuna

Anonymous
Not applicable

Hi,

 

Can you please post some sample data and expected result screenshot please.

 

Regards,

Pavan Vanguri.

Anonymous
Not applicable

Hi,

 

Below is the screenshot : I have two modes using as legend and using as slicer.

Working fine when  i am using modes as slicer it is giving perfect running total of single mode...if i select all....running total is diving to all the modes.

 

Please help me on this.

 

Capture1.PNGCapture2.PNG

 

Formula i have created:

Running Total = CALCULATE(COUNT('OD Database'[Column]),
FILTER(
ALLSELECTED('OD Database'[Column]),
'OD Database'[Column]<=MAX('OD Database'[Column])
)
)
 
I want to show running total of each mode even when all modes are selected.
 
Thanks in advance
Yamuna

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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