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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Measure showing similar row value

Eligible Supply = CALCULATE (
SUM ( 'test data'[count] ),
FILTER (
ALL ( 'test data' ),
'test data'[Serial ID] <= MAX ('test data'[Serial ID] ) -1
&& 'test data'[Serial ID]
>= MAX ('test data'[Serial ID] ) - 24
)
)
Here's the data view
Data.png


 Value in the table

Incorrect Value.png

@amitchandak 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try modifying the measure as below:

Eligible Supply = CALCULATE (
SUM ( 'test data'[count] ),
FILTER (
ALLEXCEPT ( 'test data', 'test data'[Vendor Code]),
'test data'[Serial ID] <= MAX ('test data'[Serial ID] ) -1
&& 'test data'[Serial ID]
>= MAX ('test data'[Serial ID] ) - 24
)
)
 
Best Regards,
Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try modifying the measure as below:

Eligible Supply = CALCULATE (
SUM ( 'test data'[count] ),
FILTER (
ALLEXCEPT ( 'test data', 'test data'[Vendor Code]),
'test data'[Serial ID] <= MAX ('test data'[Serial ID] ) -1
&& 'test data'[Serial ID]
>= MAX ('test data'[Serial ID] ) - 24
)
)
 
Best Regards,
Jay
philouduv
Resolver III
Resolver III

Hey @Anonymous ,

If you try to sum the count for each vendor wit hcondition I advice you to create a calculated column 

Eligible Supply =

CALCULATE (
SUM ( 'test data'[count] ),
FILTER (
ALL ( 'test data' ),
'test data'[Vendor Code] == Earlier('test data'[Vendor Code])
&&
'test data'[Serial ID] <= MAX ('test data'[Serial ID] ) -1
&& 'test data'[Serial ID]
>= MAX ('test data'[Serial ID] ) - 24
)
)

I assume that your condition is the red one and if it is accurate , you need to iterate on each vendor.

If this is not answering your problem , please explain what you are trying to do in your measure.

Best regards,

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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