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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Karolina_Sliwa
Frequent Visitor

Calculating Values is not showing data from latest date

I created a measure where I would liket to calculate with distinct count the number of documents on exact date but it is not showing correct result. What am I doing wrong? 

The total I know that is wrong but I have it only for checking what might be not ok:

I should have 86 documents for latest date: 

Karolina_Sliwa_0-1720801757709.png

 

Here is my measure: 

Karolina_Sliwa_1-1720801782463.png

 



1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @Karolina_Sliwa - can you try below measure

 

Latest Customer Document Measure =
VAR LatestDate = MAX('Requirements Data'[Last Available Date])
RETURN
    CALCULATE(
        MAX('Requirements Data'[Customer Documents]),
        FILTER(
            ALL('Requirements Data'),
            'Requirements Data'[Last Available Date] = LatestDate
        )
    )

 

rajendraongole1_0-1720804747746.png

 

it works,

 

please check

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @Karolina_Sliwa - can you try below measure

 

Latest Customer Document Measure =
VAR LatestDate = MAX('Requirements Data'[Last Available Date])
RETURN
    CALCULATE(
        MAX('Requirements Data'[Customer Documents]),
        FILTER(
            ALL('Requirements Data'),
            'Requirements Data'[Last Available Date] = LatestDate
        )
    )

 

rajendraongole1_0-1720804747746.png

 

it works,

 

please check

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





amitchandak
Super User
Super User

@Karolina_Sliwa , You have the correct sum using summarize or values

 

Sumx(Summarize(Fact, Fact[Date], Fact[Customer Requirements]) ,[Customer Documents])

 

Latest Date Date | Latest Data
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hmm I did not get, I need to calculate customer documents on latest date and I do not understand why my measure is wrong?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.