Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a sql query i need to convert into dax
select distinct id, name
from table1
where product= 'abc' and not exists (
select manufacturer, manu_name
from table2
where (category) <> 'AD' and column1= column1 and name= manu_name)
Thanks in Advance
Solved! Go to Solution.
You may add a calculated column.
Column = Table1[product] = "abc" && ISEMPTY ( FILTER ( Table2, Table2[category ] <> "AD" && Table2[column1] = Table1[column1] && Table2[manu_name] = Table1[name] ) )
https://www.sqlbi.com/?s=SQL+to+DAX
You may add a calculated column.
Column = Table1[product] = "abc" && ISEMPTY ( FILTER ( Table2, Table2[category ] <> "AD" && Table2[column1] = Table1[column1] && Table2[manu_name] = Table1[name] ) )
https://www.sqlbi.com/?s=SQL+to+DAX
Can you provide some sample data and expected output from that data? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Do you want this to be a calculated table or are you going for a table visual that implements the pattern that you indicate?
Thannk you so much for the replay.
Here is the sample execl file for both Table1 and Table 2.
column1= column1 and name= manu_name both contain a mamy to many relationhip.Sample data
I am going for a table visual that implements the pattern.
Thanks.
@Greg_Deckler wrote:Can you provide some sample data and expected output from that data? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Do you want this to be a calculated table or are you going for a table visual that implements the pattern that you indicate?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
103 | |
77 | |
66 | |
63 |
User | Count |
---|---|
142 | |
105 | |
102 | |
81 | |
68 |