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.
Hi,
I have a very simple data wherein there are only 3 columns Date/Segment/Values, however there is no data for Defense Category in the month of April. But when I use the MTD/QTD/YTD standard measures Power Bi shows me data from earlier Month (for MTD), earlier Quarter (for QTD) and earlier Year (For YTD). What I want to know is that, is there a bug in the standard MTD/QTD/YTD queires or am I doing something wrong. I have attached the excel snapshot along with Power Bi table image where there is simple SUM used and other image showing Power Bi table where I have used MTD/QTD queries. Also I noted that the Defense values are not added in the Total.
I am also attaching the quries below:
Solved! Go to Solution.
Hi @VikramShah ,
Even after removal of Months I am getting correct results.
I added a record to the existing sample.
SInce MTD and YTD are DAte functions, latest date (Month and Quarter) is considered in order to evaluate MTD and QTD since no date elements are given to provide the division.
Hi @VikramShah ,
Would suggest you create a Calendar Table using the following DAX :
Then make the following changes in your existing MTD and QTD DAX measures:
and got the results !
@mah_priya94thanks for the reply, but still it is giving me the same results.
You have put the months in Columns in the matrix. Kindly remove the months from coulmn and check the result. I am doing so because eventually I am going to make a pie chart of this.
Hi @VikramShah ,
Even after removal of Months I am getting correct results.
I added a record to the existing sample.
SInce MTD and YTD are DAte functions, latest date (Month and Quarter) is considered in order to evaluate MTD and QTD since no date elements are given to provide the division.
@VikramShah You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, 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 |
---|---|
51 | |
27 | |
24 | |
13 | |
8 |
User | Count |
---|---|
74 | |
52 | |
47 | |
16 | |
12 |