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

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.

Reply
gushal
Frequent Visitor

Help in DAX query

Hi,

 

I have two tables called Opportunity and Bookings. One opportunity can be related to one or many bookings.

 

There is a column in Booking table called BookingFrom with 4 different values, 16001, 16002, 16003 and 16004. 

 

I want to filter out how many opportunities has bookings with more than one values of 16001 or 16002. So either have 2 or more bookings with BookingFrom 16001, or 2 or more bookings with BookingFrom 16002 or 2 or more bookings with BookingFrom where one of the booking has 16001 and another booking has 16002. 

 

Anyone know how to create measure for this?

 

Thanks,

Gustav

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @gushal 

 

Can you provide some sample data and expected result? It will greatly help us understand what you are after and provide a more detailed and specific measure based on that. 

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ Jing

amitchandak
Super User
Super User

@gushal ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Do we have opportunity ID in booking? opportunity  both fact and dimension ?

Hi,

 

We have opportunity ID in booking.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.