Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
phanisri19
Regular Visitor

convert sql query to dax

Hi Experts, 
I have sql query which needs to be converted to dax
select count(id) as total from master
where id in
(select distinct pid from master
where type = 'yes')
and type = 'neutral'.

Thanks,
Phanisri

3 REPLIES 3
BeaBF
Solution Sage
Solution Sage

Okay, but can you post an example of a table you run that query on? @phanisri19 

 

B.

BeaBF
Solution Sage
Solution Sage

Can you provide any details?

Eg:
- do you need a calculated column, a measure, a table ...?
- table example
- result you expect

 

B.

@BeaBF , I need either as a measure or column for the above query

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.