Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi everyone...
I am using the below measure in the "Usage Period" visualization beneath it in order to dynamically display the time period associated with the quarter selected in the slicer to the left of it.
I have 2 questions I'm hoping someone can answer; why can't we use "between" slicers (as opposed to dropdowns, lists, etc.) with date hierarchies and why doesn't the below measure work with a "between" slicer containing a date without a hierarchy?
Kudos to anyone who can explain this one!
Solved! Go to Solution.
Hi, @bchager6
According to your description and sample picture, it seems like you want to make a date Slicer with the “Between” type and make a card chart to display the date period at the same time, you can try my steps:
This is my data calendar table:
Calendar =
CALENDAR(DATE(2019,1,1),DATE(2023,12,31 ))
I created a measure like this:
Usage Period =
var _mindate=MINX(ALLSELECTED('Calendar'),[Date])
var _maxdate=MAXX(ALLSELECTED('Calendar'),[Date])
return
"Usage Period: "&_mindate&" to "&_maxdate
And I created a Slicer with between type and a card chart like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result so that we can help you in advance.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @bchager6
According to your description and sample picture, it seems like you want to make a date Slicer with the “Between” type and make a card chart to display the date period at the same time, you can try my steps:
This is my data calendar table:
Calendar =
CALENDAR(DATE(2019,1,1),DATE(2023,12,31 ))
I created a measure like this:
Usage Period =
var _mindate=MINX(ALLSELECTED('Calendar'),[Date])
var _maxdate=MAXX(ALLSELECTED('Calendar'),[Date])
return
"Usage Period: "&_mindate&" to "&_maxdate
And I created a Slicer with between type and a card chart like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result so that we can help you in advance.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you @v-robertq-msft . I think this is as close as we can get to a solution. The goal was to be able to use quarters in a horizontal slicer or timeline visualization and have the measure interact with a card, but this only seems possible with a vertical slicer.
@bchager6 , Hope I got your questions correctly.
For Date with Hierarchy, You have both options, Option 1 where you use hierarchy and you have hierarchy slicer.
Right-click on the date in the visual pane. and use as the date you get between the range.
Date without Hierarchy do not have .day , .date. .quarter, so this formula will not work.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |