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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Agent47
Helper I
Helper I

Can slicers change fields based upon another slicer ?

Agent47_0-1742202760524.png 
WHen FY calendar is selected as Apr-Mar , then year shows FY , When selected as Jan-Dec , shows as year.

Agent47_1-1742202808562.png    Some tableau calculated functions are as follows 
case [Calendar Selection]
when 'Calendar' then 'Jan - Dec'
when 'Fiscal' then 'Apr - Mar'
END

Can this be replicated in power BI ?
Thanks for your help 

@lbendlin  @egpjavier , @danextian 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Create a field parameter with year and financial year as the fields, and use this as the slicer. You'll also need to use it in any visuals you want to be affected.

Create a measure like

Year selector is visible =
VAR ChosenYearType =
    SELECTEDVALUE ( 'Select FY Calendar'[Value] )
VAR CurrentFieldParam =
    SELECTEDVALUE ( 'Year FY Param'[Ordinal] ) // Have to use ordinal here
VAR Result =
    SWITCH (
        TRUE (),
        ChosenYearType = "Jan - Dec"
            && CurrentFieldParam = 0, // Year
        1,
        ChosenYearType = "Apr - Mar"
            && CurrentFieldParam = 0, // FY
        1
    )
RETURN
    Result

Add this measure as a filter to the field parameter slicer, set to show only when the value is 1.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Agent47,

 

Thanks @johnt75 for Addressing the issue.

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @Agent47,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @Agent47,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

johnt75
Super User
Super User

Create a field parameter with year and financial year as the fields, and use this as the slicer. You'll also need to use it in any visuals you want to be affected.

Create a measure like

Year selector is visible =
VAR ChosenYearType =
    SELECTEDVALUE ( 'Select FY Calendar'[Value] )
VAR CurrentFieldParam =
    SELECTEDVALUE ( 'Year FY Param'[Ordinal] ) // Have to use ordinal here
VAR Result =
    SWITCH (
        TRUE (),
        ChosenYearType = "Jan - Dec"
            && CurrentFieldParam = 0, // Year
        1,
        ChosenYearType = "Apr - Mar"
            && CurrentFieldParam = 0, // FY
        1
    )
RETURN
    Result

Add this measure as a filter to the field parameter slicer, set to show only when the value is 1.

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.