cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TariqArnabi
Frequent Visitor

Converting 2 Calculated columns into a Slicer

I have a report that have 2 pages (Large Companies and Non Large Companies)

1 page has a calculated column that filters  "Large Companies"  --- 
Calculated column to pull up the "Large Companies" in Rows
     - If(ISBLANK(RELATED('Company Rollup'[Large Company Rollup])) || RELATED('Company Rollup'[Large Company Rollup])="","Other",RELATED('Company Rollup'[Large Company Rollup]))

the 2nd page has a calculated column that filters "Not-Large Companies"
Calculated column to pull up the "Non Large Companies" in Rows
          - if(ISBLANK(RELATED('Company Rollup'[Parent Market])) || RELATED('Company Rollup'[Parent Market])="",Company[Company],RELATED('Company Rollup'[Parent Market]))
Filter on the page that filters out Large Companies
         - Not Large = if(Company[Companu Rollup ]="Other",TRUE(),FALSE())

I'm attempting to place both of the calculated columns into a slice so I will only have 1 page, then utilize a slicer with a
1. Large Companie
2. Non Large Companies
3. All Companies


1 REPLY 1
SanketBhagwat
Super User
Super User

Hi @TariqArnabi .

You can use the concept of 'Dynamic Axis' to achieved the desired end result.
Refer the following links;
https://www.youtube.com/watch?v=8e8a3o1w51M
https://towardsdatascience.com/dynamic-axis-in-power-bi-daxis-72ecb22c119f


If this post helps, then mark it as 'Accept as Solution' and give it a thumbs up.

Thanks,
Sanket



Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors