Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I really struggle to make a needed SUM column which is based on multiple criterias one of them being a Date/Month-column.
My dataset looks like this:
The two yellow marked columns are criterias it needs to match together, the Blue one has to be equal to "P" and Green is what it needs to SUM ultimately in the column I have on the far right.
I hope it makes sense?
Best regards!
Solved! Go to Solution.
@nbrandborg So basically you want to calculate the SUM(REUnits) by month year for each country where companysalesrating = "P"
You can use the below Query to create a calculated column
CALCULATE(SUM(REUnits), FILTER(ALLEXCEPT(TABLE, TABLE[MONTH YEAR], TABLE[COUNTRY],TABLE[ComanySalesRating]), TABLE[CompanySalesrating] = "P"))
let me know if that helps.
Thanks! It worked like intended!
@nbrandborg So basically you want to calculate the SUM(REUnits) by month year for each country where companysalesrating = "P"
You can use the below Query to create a calculated column
CALCULATE(SUM(REUnits), FILTER(ALLEXCEPT(TABLE, TABLE[MONTH YEAR], TABLE[COUNTRY],TABLE[ComanySalesRating]), TABLE[CompanySalesrating] = "P"))
let me know if that helps.
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 |
---|---|
76 | |
76 | |
56 | |
35 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |