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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
jcichansky18
Helper I
Helper I

Dynamic Cluster with DAX

Hi guys,

 

I have following data model:

 

Table: Contract

ContractIDValidFromValidTo
101/01/202015/04/2021

 

Table: Rooms

RoomIDContractIDAmountValidFromValidTo
11501/01/202018/01/2021
21619/01/202115/04/2021

 

Table: Cluster

ClusterIDRangeFromRangeToRangeDesc
102Small
235Medium
3610Large

 

+ table: Date (standard calendar table)

 

My fact table is Contract, which has relation to Rooms via ContractID.

 

What I need to do is following:

- select yyyy-mm on date slicer in PBI (single selection)

- read out selected value - last day of selected month: CALCULATE ( MAX ( Date[Date] ), ALLSELECTED ( Datum ) )

- show all valid Contracts based on date selection (previous step)

- additionally show Amount of rooms based on date selection

- show also RangeDesc from table Cluster based on date selection

 

Example:

- selected value in date slicer: 2020-12

- contract valid = Yes

- Amount of rooms: 5 ; Desc: Medium

 

- new selected value: 2021-02

- contract valid = Yes

- Amount of rooms: 6 ; Desc: Large

 

Could you please help me with DAX?

 

Thanks!

1 REPLY 1
lbendlin
Super User
Super User

I don't think you need DAX for that.  Let the data model do the work for you.  Where are you stuck?

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Users online (4,268)