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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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