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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Dynamic date filter in matrix to create 3 columns yesterday,today,tomorrow

Hello,

 

So I have this matrix which displays a value with as row countries and columns dates atm its filtered on days so it displays 1-31

I want a measure or some way of dynamically filtering so instead of 1-31 it displays as columns yesterdays date todays date and tomorrow. I figured I need to make use of today() function but cant quite figure out how to retrieve the multiple dates. I invision it as something like return today -1, return today , return today +1. Any help with this would be appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Got it by filtering the actual value on dates already so you don't need to create a seperate measure or slicer for date filtering.

 

measure = CALCULATE(COUNT(Shipment_info_3days[SHIPMENT]);ISBLANK(3days[PAYWEIGHT])=FALSE; 3days[PAYWEIGHT]>= 3500; 3days[DATE] = TODAY()-1 || 3days[DATE] = TODAY() || 3days[DATE] = TODAY()+1)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Got it by filtering the actual value on dates already so you don't need to create a seperate measure or slicer for date filtering.

 

measure = CALCULATE(COUNT(Shipment_info_3days[SHIPMENT]);ISBLANK(3days[PAYWEIGHT])=FALSE; 3days[PAYWEIGHT]>= 3500; 3days[DATE] = TODAY()-1 || 3days[DATE] = TODAY() || 3days[DATE] = TODAY()+1)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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