Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
ilcaa72
Helper IV
Helper IV

Measure not producing proper result in Matrix table

enclosed is a workbook

 

i am trying to create a Matrix that shows the difference between current month and previous month. i am having trouble with the calculation.  if I use a 'card' i can select a month and it does show the previous month difference.... BUT when i place the measure in a matrix as the value, all I get is the raw data, no difference...  here is a link to the workbook.  https://1drv.ms/u/s!Av69y58QJYzRjyK7uV29mJleakUo

 

pbi date.png

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@ilcaa72,

Please use Date format instead of Date Hierarchy format in Matrix Column.  Measure returns incorrect data due to the Date Hierarchy.
1.PNG


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@ilcaa72,

Please use Date format instead of Date Hierarchy format in Matrix Column.  Measure returns incorrect data due to the Date Hierarchy.
1.PNG


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I need help with this issue... cause I did change the Date to just "Date" and I can see the difference in values (great)... BUT, i created an Index column in Power Query to sort the dates in reverse... when I apply and go back to Power BI, then select Date and sortby this new index column.... it sorts correctly (like i want) BUT the values all turn to ZEROS!!

 

can you give me a recommendation on how to resolve these issues and make it ALL work?  

@ilcaa72,

Kindly share the new PBIX file here.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi Lydia,

 

i created a index in power query.  If i change the "Sort by", for date to Index in PBI, the values change.  here is a screenshot and the workbook, thanks for the help.  i cant figure it out!  https://1drv.ms/u/s!Av69y58QJYzRjyK7uV29mJleakUo

 

 

pBI date order.png

@ilcaa72,

Please check DAX in attached PBIX file.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thanks Lydia, it works

 

can you explain why changing the Date Column value between Hiearchy or just Date makes a difference?

 

if I choose the Date Hiearchy it will display the raw values, but if i change it to 'Date' it will display the differences, i think that was my problem with my original solution cause the formmula is the same..  thanks for any insight you can provide

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.