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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.