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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
samp19901
Regular Visitor

Chart Columns directing to different slicers?

As per subject, is there a way of say having 2 slicers (the same), but each one directed at a measure in a chart?

samp19901_2-1666619225695.png

for instance, see my screenshot above, i want the light blue column dictated by the top left slicer, and the dark blue column by the right slicer? the slicers are the same, and it is for comparision reasons.

 

Note: this is just an example, there will be more than 1 slicer for the column, however for each column the slicers will be the same.

 

many thanks

 

Sam

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @samp19901 ,

 

As far as I know, you need to create two unrelated tables for these two slicers to achieve your goal. 

My Sample:

RicoZhou_0-1666685741738.png

Dim Currency Type 1 = VALUES('Table'[Currency Type])
Dim Currency Type 2 = VALUES('Table'[Currency Type])
DimDate = 
ADDCOLUMNS(CALENDARAUTO(),"MonthShortName",FORMAT([Date],"MMM"),"Month",MONTH([Date]))

Relationship:

RicoZhou_1-1666685812699.png

Measure:

Measure1 = 
VAR _SELECT1 =
    SELECTEDVALUE ( 'Dim Currency Type 1'[Currency Type] )
RETURN
    IF (
        ISFILTERED ( 'Dim Currency Type 1'[Currency Type] ),
        CALCULATE (
            SUM ( 'Table'[Rate] ),
            FILTER ( 'Table', 'Table'[Currency Type] = _SELECT1 )
        ),
        CALCULATE ( SUM ( 'Table'[Rate] ) )
    )
Measure2 = 
VAR _SELECT2 =
    SELECTEDVALUE ( 'Dim Currency Type 2'[Currency Type] )
RETURN
    IF (
        ISFILTERED ( 'Dim Currency Type 2'[Currency Type] ),
        CALCULATE (
            SUM ( 'Table'[Rate] ),
            FILTER ( 'Table', 'Table'[Currency Type] = _SELECT2 )
        ),
        CALCULATE ( SUM ( 'Table'[Rate] ) )
    )

 Result is as below.

By Default:

RicoZhou_2-1666685854188.png

With Selection:

RicoZhou_3-1666685896367.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @samp19901 ,

 

As far as I know, you need to create two unrelated tables for these two slicers to achieve your goal. 

My Sample:

RicoZhou_0-1666685741738.png

Dim Currency Type 1 = VALUES('Table'[Currency Type])
Dim Currency Type 2 = VALUES('Table'[Currency Type])
DimDate = 
ADDCOLUMNS(CALENDARAUTO(),"MonthShortName",FORMAT([Date],"MMM"),"Month",MONTH([Date]))

Relationship:

RicoZhou_1-1666685812699.png

Measure:

Measure1 = 
VAR _SELECT1 =
    SELECTEDVALUE ( 'Dim Currency Type 1'[Currency Type] )
RETURN
    IF (
        ISFILTERED ( 'Dim Currency Type 1'[Currency Type] ),
        CALCULATE (
            SUM ( 'Table'[Rate] ),
            FILTER ( 'Table', 'Table'[Currency Type] = _SELECT1 )
        ),
        CALCULATE ( SUM ( 'Table'[Rate] ) )
    )
Measure2 = 
VAR _SELECT2 =
    SELECTEDVALUE ( 'Dim Currency Type 2'[Currency Type] )
RETURN
    IF (
        ISFILTERED ( 'Dim Currency Type 2'[Currency Type] ),
        CALCULATE (
            SUM ( 'Table'[Rate] ),
            FILTER ( 'Table', 'Table'[Currency Type] = _SELECT2 )
        ),
        CALCULATE ( SUM ( 'Table'[Rate] ) )
    )

 Result is as below.

By Default:

RicoZhou_2-1666685854188.png

With Selection:

RicoZhou_3-1666685896367.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Thanks Rico! this has helped tremendously!
is there a way from your Measure1, to add additional filtering in there? for instance if i want more than 1 filter to be applied?
thanks

Anonymous
Not applicable

Hi @samp19901 ,

 

Yes, you can catch values by SELECTEDVALUE() and add these as conditions in filter part in measure1.

Measure should look like as below.

Measure1 =
VAR _SELECT1 =
    SELECTEDVALUE ( 'Dim Currency Type 1'[Currency Type] )
VAR _SELECT2 =
    SELECTEDVALUE ( 'TableName'[Column] )
...
RETURN
    IF (
        ISFILTERED ( 'Dim Currency Type 1'[Currency Type] ),
        CALCULATE (
            SUM ( 'Table'[Rate] ),
            FILTER (
                'Table',
                'Table'[Currency Type] = _SELECT1
                    && 'Table'[Column] = _SELECT2
                    ...
            )
        ),
        CALCULATE ( SUM ( 'Table'[Rate] ) )
    )

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hey Rico,

Is is brilliant, just want i want. thank you so much.

instead of using : 

CALCULATE (
            SUM ( 'Table'[Rate] )

 Is there  a way i can use a calculated measure? for example:

 
= ''CALCULATE(SUM('Report Finance_P&L'[Essbase Value]),'Report Finance_P&L'[P&L Line Item]="Revenue")''



Thank you.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors