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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
garynorcrossmmc
Advocate IV
Advocate IV

Overlapping Date Period Labels

Hi all,

I am trying to create a column labeled '12 Months', '18 Months' and '24 Months' according to which values in this table have a 1 or 0 in the columns labeled the same way:

garynorcrossmmc_0-1628107454699.png

The column would be used as a slicer in the report for a user to select a time period.  I have tried using IF, SWITCH and other methods but cannot figure out how to do this.  

1 ACCEPTED SOLUTION
samdthompson
Memorable Member
Memorable Member

Hello, couple of ways to do it. This is probably going to be the easiest:

 

1. Make a unconnected Table with the names of the Time period you want

2. Reference the time period names from the new table in a calculation like this:

Value = 
IF(HASONEFILTER(Table[CalcType]),
    SWITCH(SELECTEDVALUE(Table[CalcType]),
        "12Months", [12MonthCalc],
        "18Months", [18MonthCalc],
        "24Months", [24MonthCalc]
    ),
   BLANK()
)

Any new ones need to be referenced in this calculation but its not a lot of work to do.

 

 

// if this is a solution please mark as such. Kudos always appreciated.

View solution in original post

2 REPLIES 2
samdthompson
Memorable Member
Memorable Member

Hello, couple of ways to do it. This is probably going to be the easiest:

 

1. Make a unconnected Table with the names of the Time period you want

2. Reference the time period names from the new table in a calculation like this:

Value = 
IF(HASONEFILTER(Table[CalcType]),
    SWITCH(SELECTEDVALUE(Table[CalcType]),
        "12Months", [12MonthCalc],
        "18Months", [18MonthCalc],
        "24Months", [24MonthCalc]
    ),
   BLANK()
)

Any new ones need to be referenced in this calculation but its not a lot of work to do.

 

 

// if this is a solution please mark as such. Kudos always appreciated.

Hello there, I need exactly this, but I'm not able to understand the solution properly... 😕 
Could you please explain it to me in a bit more detail?
The "Value" - it's measure?

And what is "Table" and the column [CalcType]? Is it the new disconnected table?
And which field do I use in the slicer?
Your help would be very much appreciated!
Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.