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
Hello,
I would like to ask for your help with optimizing my running total measure.
Run_total_measure =
@Anonymous
A typical Running total measure is using All/Allselected, and [column]<=MAX([column]) as the filter expression, try the the following measure:
Run_total_measure =
Hello and thank you for your reply.
Syntax of the suggested measure works, but the output is not correct. Please see the link below for file with complete use case.
Thank you for your time!
@Anonymous , Try like
CALCULATE( SUM( package_item[quantity] ), FILTER( ALL( 'item'[ean], 'item'[item_name] ), package_item[quantity]= max(package_item[quantity] ) ))
Thank you for the suggestion but package_item[quantity] is a column and this syntax gives me error, bcs there are not unique values in this column
I prepared PBIX without sensitive data. Table at the bottom, there is shown everything I need to achieve BUT it is calculated over product category (measures folder CAT).
The next step is to transfer the same logic to granularity of EAN and item_name - the table at the top (measures forder EAN). Problematic measures are ean running % of total p and ean running % of total q
https://drive.google.com/file/d/1yhpbYCI9xsH6k_3tBYNr3Tv2XdWKRwzi/view?usp=sharing
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.