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.
Hi,
I'd like to create a measure that displays the total sales per Invoice for each correspondent data row. In this example the total of Invoice = A is 70 (10 + 25 + 15 + 20). For B it's 65. Without any filter each row of Invoice = A should display 70, then for B 65.
The measure I have created displays the total sum of all which is 135. So this is not correct yet.
Only when I apply the filter Invoice, it shows the correct number for each row:
How can this be achieved without applying any filter?
Btw, how can I add the pbix sample file as attachment?
Thank you
Solved! Go to Solution.
Hi,
Write this measure
Measure = calculate(sum(salesdata[sales]),all(salesdata[group]))
Hope this helps.
Hi,
Write this measure
Measure = calculate(sum(salesdata[sales]),all(salesdata[group]))
Hope this helps.
Thanks, works 🙂
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 |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |