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.
Hello All
I have a column called FY_QTR and it has values like 1st QTR, 2nd QTR, etc. I also have a column called StorageCharge which has dollar values.
I want to create a Measure that will Sum the Storage Charges for the 2nd Quarter. How would that be written in DAX?
I need to make this into a measure becuase I am going to use this measure to add to another measure on a different page Thanks for any help!
Solved! Go to Solution.
hey,
Measure = calculate(sum(table[storagecharge], table[FY_QTR] = "2nd QTR"))
if this helped over with your question give some kudos and mark as solution for others to find it.
Proud to be a Super User!
if I understand correctly you talking of multiiply condition for the sum sure you can do this adding filters on the measure example:
Measure = calculate(sum(table[storagecharge], table[FY_QTR] = "2nd QTR" , table[CPUCharge] = "value parameter"))
and so on you add by "," a new filter condition.
Proud to be a Super User!
hey,
Measure = calculate(sum(table[storagecharge], table[FY_QTR] = "2nd QTR"))
if this helped over with your question give some kudos and mark as solution for others to find it.
Proud to be a Super User!
Thanks worked great and I will accept as Solution! I do have a follow on question, how would I write this if I have mulitple fields to add for 2nd Qtr-----say I have Storagecharge, CPUCharge and MemoryCharge (all frome same table) and need to include them all in the formula you gave me?
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
9 | |
7 |