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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Measures

Hello, 

 

I have the following:

 

soochoilondon_0-1663527542039.png

 

 

Problem: 

When using the date slicer it updates the black card visual correctly, but the white card visual doesn't give the correct corresponding value. It works fine for the Yesterday value but for no other dates in the slicer. 

 

The black card visual is calculating the latest figures using Measures:

Yesterday's Month to Date Total = [Measure 100]+[Measure 200]
 

Where:

 

Measure 100 =
CALCULATE([Total EOD Balance in GBP], FILTER(ALL('V3 Measure for Changes'),'V3 Measure for Changes'[rank]=max('V3 Measure for Changes'[rank])))
 
and 
 
Measure 200 =
  VAR __Max = MAX('V1 Measure Changes'[rank])
RETURN
  CALCULATE([Total Portfolio Balance in GBP]ALL('V1 Measure Changes'),'V1 Measure Changes'[rank]=__Max)
 

The white card visual is calculating the figures from the day prior to the Black cad visual, using the same dataset/calculation:

Two Days Ago Month to Date Total = [Measure 105]+[Measure 205]

 

Where:

 

Measure 105 =
CALCULATE([Total EOD Balance in GBP], FILTER(ALL('V3 Measure for Changes'),'V3 Measure for Changes'[rank]=max('V3 Measure for Changes'[rank])-1))
 
Measure 205 =
CALCULATE([Total Portfolio Balance in GBP]FILTER(ALL('V1 Measure Changes'),'V1 Measure Changes'[rank]=max('V1 Measure Changes'[rank])-1))
 
Thank you. 
 
Soo
1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry, not very clear.

Can you provide some virtual data and the desired results?

And what is the [rank] for?

You have the text 'Yesterday' in the slicer field, so your dates are also in text format, hope you know that.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.