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.
Hello,
I'm fairly new to Power BI and currently using PBI Desktop to develope and publish. I'm having trouble with a measure that is not calculating the date corretly. I have 2 queries with a relationship connected together.
This is my measure :
Solved! Go to Solution.
DATESMTD resets counting every month. you probably don't have any records for "Cluster Plan"[AVERAGE_PER_DAY_US] for months of March yet.
Another problem could be that DATESMTD is not applied to calendar table (table which is related to fact table with dates starting from Jan 1 through Dec 31 and daily granularity).
without seeing that model it's hard to fix the problem.
For any time intelligence function, you could implement a custom DAX formula.
https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/
For any time intelligence function, you could implement a custom DAX formula.
https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/
DATESMTD resets counting every month. you probably don't have any records for "Cluster Plan"[AVERAGE_PER_DAY_US] for months of March yet.
Another problem could be that DATESMTD is not applied to calendar table (table which is related to fact table with dates starting from Jan 1 through Dec 31 and daily granularity).
without seeing that model it's hard to fix the problem.
I just added the Fact table DimCalendar.
My cluster plan tables does not have every day granualarity, but does have YYYYWW column in common. Still it does not give me what I need.
it will be hard to fix your issue not seeing sample model.
See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
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 |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |