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.
Hello!
I am trying to use two date columns from the same table to filter a page in my report but am having difficulty getting the end results that I want. There are two components to what I'm trying to do.
1. I need to filter the data in the table to only return results inbetween the dates in two columns
2. I want the report page to default to today's date, with the option of changing the date with a slicer
So the end result I'm aiming for is for the data to be filtered to only include rows with a date inbetween the two columns, and then the report page auto-filtered for TODAY with the option of adjusting the dates via slicer.
Thank you in advance for any help you're able to provide!!
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Value measure: =
CALCULATE (
SUM ( Data[Value] ),
FILTER (
Data,
Data[DateStart] <= MAX ( 'Calendar'[Date] )
&& Data[DateEnd] >= MIN ( 'Calendar'[Date] )
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |