Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
What we have :
We have a Time Dimension for which the granularity is Month-Year and the Key column has values like 201810 (YYYYMM).
Also we have, 'First Day of Month' as 'Date' Data type column.
Requirement :
We want, 2 Month level drop-down slicers to select ‘From Month’ and ‘To Month’ in the Format (October, 2018).
Based on this selection, the Fact table should be filtered for all the months between the selected ‘Initial Month’ and ‘Ending Month’.
Problem :
Now, if we take it based on Month-Year, since it’s data type is not ‘Date’, the in_range or the ‘between’ doesn’t work.
So we need to be able to somehow get these slicer’s selected values, process/transform them into Month Year Key and then apply the filter on the Fact Table based on this Month Year Key.
Thanks in Advance.
Hi @Anonymous,
For your requirement, what about use date between slicer?
If it is convenient, could you share some data sample and your desired output so that we could help further on it?
Best Regards,
Cherry
The client’s requirement is to show 2 separate Month Drop downs.
We showed them Date Slicers, they need Month Drop Downs only. Not fine with Date Slicers.
We have:
Fiscal Month Key | Month Name | First Day of Month |
201801 | Jan 2018 | 01-01-2018 |
201802 | Feb 2018 | 02-01-2018 |
We want to show 2 drop downs showing “Month Name” Columns.
User selects “Starting Month” in the first Drop Down and “Ending Month” in the second Drop down.
Expectation is that based on this selection, the Fact data (Measure) should get filtered for all the months falling between this selected range.
Example :
User selects “Jan 2018” in first dropdown
And selects “Sep 2018” in second dropdown.
Data should be filtered : Where FirstDayOfMonth between 01-01-2018 and 09-01-2018.
Hope this clarifies the scenario. Please let me know if any more details are required.
Did we get any solutions to this?
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |