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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
anmdf
Regular Visitor

Use the same column for different date periods (non-numerical)

Hi,

 

So i have the table below to say how many months the description is, and I have a slicer for two periods

 

YearDescriptionValue
2021ABC18 months
2021BCD12 months
2020ABC7 months
2020BCD8 months

 

The value may be different for the same description but different period (e.g. in 2021 ABC is 16 months, in 2020 ABC is 18 months, etc.). It's not calculated, but kind of like a policy that could change over time.

 

Is there a way to show two columns of "value" that is dependent on the two period slicers? For example, if I change Period A to a certain period, only the Period A value will change. I was able to do this with numerical values by using CALCULATE and USERELATIONSHIP, but I'm a bit lost as to how to do it for text values.

 

Sample:

Slicer 1 - Period A (2018, 2019, 2020, 2021) = selected 2020

Slicer 2 - Period B (2018, 2019, 2020, 2021) = selected 2021

 

DescriptionPeriod A value Period B value
ABC7 months18 months
BCD8 months12 months

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @anmdf ,

 

Can you share the measure calculation you used for the nnumerical values to work please?

In theory, it should work fine for text values using a MAX() function or similar instead of SUM().

I'm assuming you're using a role-playing dimension setup for the two year slicers?

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @anmdf ,

 

Can you share the measure calculation you used for the nnumerical values to work please?

In theory, it should work fine for text values using a MAX() function or similar instead of SUM().

I'm assuming you're using a role-playing dimension setup for the two year slicers?

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Hi @BA_Pete ,

 

Thank you for your response. The measure for numerical values goes like this:

Measure = CALCULATE([Amount], USERELATIONSHIP('Calendar - Period A'[Date], Database[Date])

 

MAX() function worked. Thank you!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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