The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everybody,
I'm trying to dynamically manipulate a value according to the time frame chosen on a time slicer (slider, not dropdown or selection).
I have values per Month like this:
JAN | 400 |
FEB | 325 |
.. | .. |
Now, the goal is to break down the values according to the time frame chosen.
For example, if I was to choose 1st of January - 4th of January as a timeframe, the value should be:
400/31 * 4
And if it would be 1st of January - 2nd of Feburary it should be:
400/31 * 31 + 325/28 * 2
Is is possible to make a value react to a timeslicer like that?
Any pointers would be much appreciated!
Thank you!
Approach your issue step by step
- get the distinct values of the dates inside your slider selection (min to max)
- group the values by month
- for each month add the count of days from the dates table
- add the count of days from the slider/slicer for each group
- profit!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
20 | |
18 | |
17 | |
14 | |
13 |
User | Count |
---|---|
36 | |
35 | |
21 | |
19 | |
18 |