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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.