Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Greetings all,
I'm new to Power BI/Dax in general so apologize if this might seems obvoious but I couldn't manage to find a way to do it.
i want DAX FUNCTION to caluclate measure of sum of trophies won by australia and africa combined ,
i want to display it in card visualization.
Solved! Go to Solution.
Hi @Anonymous_KH ,
According to your description, here's my solution. Create a measure.
Measure =
IF (
"AFRICA"
IN VALUES ( 'Table'[COUNTRY] )
|| "AUSTRALIA" IN VALUES ( 'Table'[COUNTRY] ),
SUMX (
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[COUNTRY] IN { "AFRICA", "AUSTRALIA" }
),
'Table'[TROPHIES WON]
)
)
Get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous_KH ,
According to your description, here's my solution. Create a measure.
Measure =
IF (
"AFRICA"
IN VALUES ( 'Table'[COUNTRY] )
|| "AUSTRALIA" IN VALUES ( 'Table'[COUNTRY] ),
SUMX (
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[COUNTRY] IN { "AFRICA", "AUSTRALIA" }
),
'Table'[TROPHIES WON]
)
)
Get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Write this measure
Measure1 = calculate(sum(Data[Trophies won]),Data[Country]="Australia"||Date[Country]="Africa")
Hope this helps.
@Anonymous_KH , Create a measure like below and put it in a card, You'll get your result...
Trophies Total= CALCULATE( SUM('Table'[TROPHIES WON]), 'Table'[COUNTRY] in {"AUSTRALIA", "AFRICA"} )
i want to return a measure that ignoring any filters that might have been applied. for example if i click other country in my slicer panel , thic measure automatically showing blank
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
84 | |
49 | |
38 | |
28 |
User | Count |
---|---|
188 | |
76 | |
73 | |
54 | |
42 |