Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear Community,
I have a dataset with following columns (these are relevant for my problem):
For my calculations I need a sum of spend for following filters 2018, YTD and supplier (from slicer).
My problem is that when I calculate the spend I'm getting always a split per country which is something that I need to avoid. I need on the other hand to split it per Region and Ownership.
How this can be done?
I tried following (measures only):
SPEND = SUMX(FILTER('DP Summary';'DP Summary'[Payment Year]="2018" && 'DP Summary'[YTD]="yes"
&& 'DP Summary'[Supplier]=[Selected]);'DP Summary'[SPEND])
(in measure "Selected" I'm keeping current value from slicer)
I tried to add ALL and ALLSELECTED in the filter function. ALL shows global number and doesn't split per regions and ownerships. ALLSELECTED gave the same result as above function.
I tried SUMMARIZE - function failed to display anything.
I tried CALCULATE with FILTER inside of a FILTER
SPEND = CALCULATE('DP Summary'[Spend];FILTER (FILTER (FILTER ('DP Summary';'DP Summary'[Supplier]=[Selected]); 'DP Summary'[YTD] = "yes"); 'DP Summary'[Payment Year] = "2018"))
Above gives some result as SUMX... still no idea how to fix it for total vendor not to split per country.
This calculation is just a step in a bigger bridge calculation that I need to make.
I'd be extremely grateful for any advice.
Perhaps I should use columns instead of Measures...
Thanks in advance.
Gosia.
Hi @GosiaN
I hope you have found an answer to your question, but if not, here is an approach on how to solve your problem:
Measure = CALCULATE(SUM('Table'[sale]);FILTER(ALLEXCEPT('Table';'Table'[supplier]);'Table'[year]=2018))
A small piece of advice on how to get your questions answered quickly: add sample data and a mockup of your desired output in your posts.
Best,
Sturla
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |