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

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.

Reply
ilcaa72
Helper IV
Helper IV

table doesnt display values

i have the exact same measure in a barchart and in a Matrix table.. the bar chart displays the correct decimal values, the matrix displays all zeros... not sure why or how to correctly fix this... the measure is formatted under Moedling tab as decimal and 4 units.

 

pBI date order.png

 

 

1 ACCEPTED SOLUTION

thanks for thr reply, here is the measure. It works fine in chart type, BUT in the Matrix. the values are all zeros.

 

i am just taking the current value and subtracting it from previous months value.  if the month is the 1st month, just show a zero.  Is this proper?

 

Match Rate Diff = 
VAR Minimun_Date = CALCULATE(MIN(MatchRate[Date]), ALL(MatchRate[Date])) 
VAR Date_to_Compare = MIN(MatchRate[Date])
RETURN

IF( Minimun_Date = Date_to_Compare, 0,
SUMX(MatchRate, MatchRate[MatchedRate]) 
- 
CALCULATE( SUMX(MatchRate, MatchRate[MatchedRate]), 
			DATEADD(MatchRate[Date],-1, MONTH )))

 

View solution in original post

3 REPLIES 3
v-danhe-msft
Employee
Employee

Hi @ilcaa72,

Based on my test, it could work on my side:

1.PNG

Could you please offer me your data strcture and your measure formula?

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/npw2h2mxe0t93yx/table%20doesnt%20display%20values.pbix?dl=0

 

Regards,

Daniel He

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

hi Daniel, You didnt subtract the values in your exaple workbook.  all you did was list the values...  here is a sample work book

 

https://1drv.ms/u/s!Av69y58QJYzRjyE4igUTbHkFchba

 

i need to subtract each value from the previous month for each bank

thanks for thr reply, here is the measure. It works fine in chart type, BUT in the Matrix. the values are all zeros.

 

i am just taking the current value and subtracting it from previous months value.  if the month is the 1st month, just show a zero.  Is this proper?

 

Match Rate Diff = 
VAR Minimun_Date = CALCULATE(MIN(MatchRate[Date]), ALL(MatchRate[Date])) 
VAR Date_to_Compare = MIN(MatchRate[Date])
RETURN

IF( Minimun_Date = Date_to_Compare, 0,
SUMX(MatchRate, MatchRate[MatchedRate]) 
- 
CALCULATE( SUMX(MatchRate, MatchRate[MatchedRate]), 
			DATEADD(MatchRate[Date],-1, MONTH )))

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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