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.
I'm facing an issue with TOTALMTD, TOTALQTY DAX functions.
Here is my problem,
I have 2 tables,
one is Dimension table for Date and another one is fact. There is a relationship between them based on Date field.
I have created a measure - TOTALMTD(SUM(fact[Sales]),Dimension[Date]))
It isn't working as expected. But when use Fact[Date] instead Dimension[Date] or Remove the relationship, It's working fine.
It's absolutely strange. Kindly help me with this.
Check weather the date field in the fact table and date field in the dimension table is of same data type.
Earlier I also faced the same issue then I found out that in my fact table date was stored in datetime format and in my calender table date was stored as the type of date format
Thanks for the quick response. Both are in the same data type(Date).
can u share the relationship diagram?
Create two new tables.
In the first table, pull in your date and sales total, both from your LiquorSales data.
Second table, pull in your date column from your Dates_modelview and sales total from your LiquorSales.
Narrow both down to just this month and compare results. If your "TotalMTD" is wrong, these two tables should not match. This will help you find the issue.
hi all,
i'm having the same issue, did you find any solution on that one ?
thank you !!!
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 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |