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.
Hi Geeks,
I m trying to Filter a Measure(Sum of SALES) based on caluclation on Dimesnions GROUPID='PHL' AND ITEM='1003'
Basically, Needs the below SQL condition in DAX:
SUM(CASE WHEN NOT([GROUPID]='PHL' AND [ITEM]='1003') THEN SALES END)
Solved! Go to Solution.
Hi,
From what i understand, you wish to sum the sales after ignoring PHL from the GroupID column and 1003 from the Item column. If my understanding is correct, then try this
=CALCULATE(SUM(Data[Sales]),Data[GroupID]<>"PHL",Data[Item]<>1003)
Please note that i have assumed the Item column to be a numeric column. If not, then wrap 1003 in double quotes.
Hi,
From what i understand, you wish to sum the sales after ignoring PHL from the GroupID column and 1003 from the Item column. If my understanding is correct, then try this
=CALCULATE(SUM(Data[Sales]),Data[GroupID]<>"PHL",Data[Item]<>1003)
Please note that i have assumed the Item column to be a numeric column. If not, then wrap 1003 in double quotes.
In power BI if you are using DAX you need to use calculation calculate formula for example:
calculate formula take and expression and a filter
Excluded Dimension = calculate(sum(sales), [GROUPID]="PHL" and [item]=1003)
if you are creating a measure with dax you need to use double quotes and use calculation for example:
excluded Dimension = calculate(sum(sales),[groupID]="PHL" and [item]="1003")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |