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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
cmilligan262
Helper II
Helper II

Filtering columns in stacked column chart

Capture.PNGI'm wanting my column chart below to always display the actual scenario and then use the filter to compare it to another scenario. Let me know I need to clarify further. Any help is appreciated.

 

Thank you

 
 
 
 
4 REPLIES 4
edhans
Super User
Super User

You'll need to use ALL() or some variant to show Actual at all times, but yeah, we'll need more data to understand what you have and what you need. A link to a PBIX file in this case would be helpful plus a concise description of expected results. See links below.

 

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

@cmilligan262 solution is attached, you have to create separate slicer to make it work, check solution where "A" is fixed, and compare against selected values in the slicer.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k That worked perfectley. Thank you.

 

Can you explain to me what this is doing. I need to apply it to a couple more YTD formulas and want to make sure I'm understanding it.

@cmilligan262 see the full explanation in the measure

 

 

Measure = 
VAR __rows = 
DISTINCT ( --distinct will give us unique list of selected scenarios, it is required because if default scenario is selected in the slicer and we are also adding the default scenario in the UNION section, distinct will get us unique scenarios
    UNION (  --union will add default scenario with all the selected scenarios in the slicer
        CALCULATETABLE ( VALUES ( Slicer[Category] ), ALL ( Slicer[Category] ), Slicer[Default] = "Default" ), --get values for Actuals by looking at default column
        VALUES ( Slicer[Category] ) --get list of all the selected sceanarios in the slicer
    )
)
RETURN
CALCULATE ( 
    SUM ( Data[Amount] ),  --measure on which we want to apply the selected, it could be any existing measure
    KEEPFILTERS ( --keefilters to keep the row contet of the scenario
        TREATAS ( __rows, Data[Category] )   --treatus will be used to filter the scenarios
    ) 
)

 

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors