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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mpros
Helper I
Helper I

Unexpected result of measure

Good morning,
measure expressing a cumulative value is strangely not working:

mpros_0-1722241236517.png

 

Ordered (Packing) = CALCULATE(sum(Query1[Quantity ordered]),USERELATIONSHIP('Calendar'[Date],Query1[Planned Packing Date]))
**bleep** Orderedxxx = CALCULATE([Ordered (Packing)], filter(ALLSELECTED(Query1), Query1[Planned Packing Date]<=MAX('Calendar'[Date])))

while instead using same construction for Packed it's working fine (first 2 columns):

Packed =
CALCULATE(sum(Query1[Quantity packed]),USERELATIONSHIP('Calendar'[Date],Query1[PackedDateKey]))
Ordered (Packing) = CALCULATE(sum(Query1[Quantity ordered]),USERELATIONSHIP('Calendar'[Date],Query1[Planned Packing Date]))

Also, total ytd quick measure is working fine as of last shown column.
Regards







1 REPLY 1
BeaBF
Super User
Super User

@mpros Hi! Can you share your pbix file? or sample data? 

 

BBF

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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