Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
HI Community
i am trying to calculate the percentage of only expired row
can please help how to manage with DAX to achieve this
Expiry status and Available quantity both are column
| Expiry Status | Available quantity |
| Expired | 11,27,200 |
| Not expired | 1,79,82,238 |
| TOTAL | 1,91,09,438 |
Solved! Go to Solution.
Hi @Bashir_Nadaf ,
The easy method is put the field "Available quantity" onto Values options and show values as "Percent of grand total" just as below screenshot.
Or you can create a measure as below to get it, you can find the details in the attachment.
Measure =
VAR _expired =
CALCULATE (
SUM ( 'Table'[Available quantity] ),
'Table'[Expiry Status] = "Expired"
)
VAR _all =
CALCULATE ( SUM ( 'Table'[Available quantity] ), ALLSELECTED ( 'Table' ) )
RETURN
DIVIDE ( _expired, _all, 0 )
Best Regards
Hi @Bashir_Nadaf ,
The easy method is put the field "Available quantity" onto Values options and show values as "Percent of grand total" just as below screenshot.
Or you can create a measure as below to get it, you can find the details in the attachment.
Measure =
VAR _expired =
CALCULATE (
SUM ( 'Table'[Available quantity] ),
'Table'[Expiry Status] = "Expired"
)
VAR _all =
CALCULATE ( SUM ( 'Table'[Available quantity] ), ALLSELECTED ( 'Table' ) )
RETURN
DIVIDE ( _expired, _all, 0 )
Best Regards
Thank you so much @Anonymous 😊😊
This post helped me alot
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.