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.
Dear all,
I need your support in writing a DAX formula.
Situation
I have a table that contains a column "Auftragsnummer" (order no.) and a column "Artikel" (article).
There can be several article lines per order no., therefore the order no. column contains the number several times:
Goal
If the article "ZSOPA" appears in an order, then all lines with the same order no. must be filtered out.
Problem
If I solve this with normal filtering, it filters out only the one line with "ZSOPA", but all other lines with the same order no. remain.
Is there a good approach or a DAX formula to reach the goal?
Thank you for your awsome support!
Solved! Go to Solution.
@Anonymous
For example we don't want any row with product A/ignore all the orders if it has A
Now you can filter 1 to get the desired output
Thanks a lot for you post. Very helpful. What should i do for other way around please?
That is if there is x in column 3 then solution expected to be 1 for with respective to column2 and order number please
Any idea please?
Thanks a lot
You could create a table like
Orders with ZSOPA = CALCULATETABLE( VALUES( 'Table'[Auftragsnummer]), 'Table'[Artikel] = "ZSOPA")
and link that in a one-to-many relationship to the main table. On visuals you could add a filter so that the 'Orders with ZSOPA'[Auftragsnummer] is blank, and if you wanted to filter inside measures you could use
My measure = CALCULATE( some calculation,
TREATAS( { BLANK()}, 'Orders with SZOPA'[Auftragsnummer] )
)
@Anonymous
For example we don't want any row with product A/ignore all the orders if it has A
Now you can filter 1 to get the desired output
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 |
---|---|
13 | |
12 | |
10 | |
7 | |
7 |
User | Count |
---|---|
19 | |
14 | |
11 | |
10 | |
10 |