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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Niharika
Regular Visitor

Is it possible to link two date range filter with the same table?

Hi, I'm trying to make my table columns dynamic. Can you please let me know if it is possible directly or using Dax? The scenario is like I want to add two date range on my page, there I am showing a table with the current value columns and the previous value columns. I want to dynamically change the alternate columns using the two filters respectively. That is like; using date range 1, columns 1 should only change, and using the 2nd date range column 2 will change and so on respectively.

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

If I understand what you are trying to do correctly, the following approach might work.

 

1. Make two calculated DAX tables, both with the same expression - FilterDates1 = Values(OriginalTable[Date]) and same for FilterDates2

2. Add each of the new Date columns as slicers to your report

3. Write two measures like this - MeasureWithFilter1 = Calculate([MyMeasure], TREATAS(Values(FilterDates1[Date]), OriginalTable[Date]))

4. Add the two measures to your visual

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@Niharika , refer if this can help

https://www.youtube.com/watch?v=cyOquvfhzNM

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Amit,
Thanks, you take the time to give the response to my Query!
I am not looking for something like this, I want to filter my alternate columns using 2 slicers independently.
Although Thanks for the suggested video,  it added up to my learning 🙂

Anonymous
Not applicable

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.