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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.