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
Hierkommtnils
Frequent Visitor

Help with Switch function needed

Hi, I was trying to get a visual which shows values based on delivery dates or trading dates. Between those two dates the report viewer should be able to switch via slicer.

 

Example table:

 

Trade_Date | Delivery_Start_Date | Value

01.05.2024  | 01.01.2025              | 200

01.05.2024  | 01.10.2024              | 75

02.05.2024  | 01.01.2025              | -50

02.05.2024 | 01.10.2024     | -30

...

 

I have created a tabel called DateSwitch:

Hierkommtnils_0-1718693689558.png

 

Now I try to use this as a measure:

Hierkommtnils_1-1718693806175.png

 

But it doesnt work, as he seems to search for a single value. Any ideas?

 

Thanks

Cheers Nils

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Please use Field Parameters for this.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Please use Field Parameters for this.

Thanks, that was the missing part!

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!

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.