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.
Hi
I have two fields
From date
To date
I want to have a variable in my report so i can type in example year 2015 and the result will find all records where 2015 is between or on "from date" and "to date".
Thanks for help!
Solved! Go to Solution.
There are a couple solutions to this issue.
You can go more of a dynamic route and allow the utilizations of both a YEAR and a DATE slicer. Allow users to set a year using radio buttons, then allow them to enter a date range using a date slicer. I would reccomend using a calendar table too if you're not.
You also can create static variable within measurs that could contains your Min and Max Dates for any calculation.
Let me know if you're interested in either, and would like some more infomation.
There are a couple solutions to this issue.
You can go more of a dynamic route and allow the utilizations of both a YEAR and a DATE slicer. Allow users to set a year using radio buttons, then allow them to enter a date range using a date slicer. I would reccomend using a calendar table too if you're not.
You also can create static variable within measurs that could contains your Min and Max Dates for any calculation.
Let me know if you're interested in either, and would like some more infomation.
hi
Thanks for your time and answer.
The issue is that the date ranges are not fixed (to and from date), so i cant use a slicer on to date and from date.
Examle:
I want all records in 2015
here to-date can be on 2015 or later and from date can be on 2015 or before
Please share more information 🙂
Thanks
To clarify -
You want to be displayed either "To Date" or "From Date", that contains 2015?
Sharing some examples of your data will be helpful.
Thanks. The answer was in your first post 🙂
I created to date filters. so to find all records for 2017 it will be: from date = 2017 and before and 2017 and beyond in the second
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 |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
57 | |
49 | |
44 | |
18 | |
18 |