The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Mates,
Can you please help me in decoding the below excel formulae and to write the same as DAX in Power BI
=SUMIFS('Sheet1'!$F:$F, 'Sheet1'!$A:$A, B$2, 'Sheet1'!$B:$B, $A4, 'Sheet1'!$E:$E, "Private")
Solved! Go to Solution.
Hi @Etsu0411 ,
Approve with @Greg_Deckler . Besides, you can use Calculate(Sum(...),Filter(...)) too.
Based on your description, I have created a simple sample:
After connect to Power BI:
Here is the DAX:
Measure = SUMX(FILTER('Table',[Column A]="B"&&[Column B]="A"&&[Column E]="Private"),[Column F])
Measure 2 = CALCULATE(SUM('Table'[Column F]),FILTER('Table',[Column A]="B"&&[Column B]="A"&&[Column E]="Private"))
Fianl output:
For more details, please refer to:
CALCULATE function (DAX) - DAX | Microsoft Learn
SUMX function (DAX) - DAX | Microsoft Learn
FILTER function (DAX) - DAX | Microsoft Learn
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Etsu0411 ,
Approve with @Greg_Deckler . Besides, you can use Calculate(Sum(...),Filter(...)) too.
Based on your description, I have created a simple sample:
After connect to Power BI:
Here is the DAX:
Measure = SUMX(FILTER('Table',[Column A]="B"&&[Column B]="A"&&[Column E]="Private"),[Column F])
Measure 2 = CALCULATE(SUM('Table'[Column F]),FILTER('Table',[Column A]="B"&&[Column B]="A"&&[Column E]="Private"))
Fianl output:
For more details, please refer to:
CALCULATE function (DAX) - DAX | Microsoft Learn
SUMX function (DAX) - DAX | Microsoft Learn
FILTER function (DAX) - DAX | Microsoft Learn
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Etsu0411 You can use SUMX(FILTER(...), ...)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
79 | |
72 | |
48 | |
39 |
User | Count |
---|---|
138 | |
108 | |
69 | |
64 | |
57 |