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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.