Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I'm trying to find an equivalent or alternative solution for below excel example. Column B containts the (original) quantities, column C the calculated ones, where the value is set to 0 (zero) where the ID in column A already occurs earlier in previous rows. (the outcome in cell C8 is 0), same as the cell above.
the totals in cells B9 and C9 are only for illustration purposes and are not needed as such.
I'd posted this question earlier attempting to explain what I need in power bi, but without this excel reference. I hope this both clarifies what I'm after and triggers a solution.
thanks,
Solved! Go to Solution.
Hi @Anonymous
In Power BI, before any transformation,
firstly you could go to Home->Edit queries,
Add column->add an index column from 1,
Then close&&apply and return to Report view,
Create measures
Measure = CALCULATE(MIN(Table1[Index]),ALLEXCEPT(Table1,Table1[id])) Measure 2 = IF(MAX(Table1[Index])=[Measure],SUM(Table1[q]),BLANK())
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
In Power BI, before any transformation,
firstly you could go to Home->Edit queries,
Add column->add an index column from 1,
Then close&&apply and return to Report view,
Create measures
Measure = CALCULATE(MIN(Table1[Index]),ALLEXCEPT(Table1,Table1[id])) Measure 2 = IF(MAX(Table1[Index])=[Measure],SUM(Table1[q]),BLANK())
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
68 | |
53 | |
39 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |