The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi everybody,
In my Year slicer,
I have all the years from my calendar table.
However, I only want to display the available years from my fact table.
To achieve this,
I used the date from my fact table in my slicer by creating a calculated dimension Year and Month, and it works well.
However, this modification has caused an error in my calculated measure Sales Year-1 which was fetching my Date field from my Calendar table.
Thanks a lot
Solved! Go to Solution.
@marakud971 , Slicer on any period, Period on Visual and date in Measure all should come from T_DIM_Calendar and T_DIM_Calendar should be marked as date table and should have all the dates.
In such a case, it should work with a single directional join.
Do not use date in TI function from you fact/table
@marakud971 , You measure seems fine. But if you want to use inactive join, make sure you use a measure which already have userelationship in TI measue
or try like
example
calculate( calculate( SUM(Sales[Sales Amount]),USERELATIONSHIP ('Sales'[CreateDate], 'Date'[Date])),DATESMTD('Date'[Date]))
MakeWhy Time Intelligence Fails - Powerbi 6 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
Hi @amitchandak ,
In my case, i use the active relation in my measure.
Here the error message
When i use, in my slicer, the date field of my Calendar Table , it's okey.
But when i use, in my slicer, the calculated YEAR and Month colunm, it's KO.
@marakud971 , Slicer on any period, Period on Visual and date in Measure all should come from T_DIM_Calendar and T_DIM_Calendar should be marked as date table and should have all the dates.
In such a case, it should work with a single directional join.
Do not use date in TI function from you fact/table
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
118 | |
102 | |
82 | |
63 | |
57 |
User | Count |
---|---|
254 | |
119 | |
115 | |
100 | |
76 |