Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello all,
I have a Booking Table where I have a Booking ID and a Departure ID for each booking.
I need a measure to calculate the no. of legs which should be the Distinct Depature ID for each Booking ID.
Solved! Go to Solution.
@Anonymous , Try with Departure id?
COUNTROWS(SUMMARIZE(Booking, Booking[Booking Reference], Booking[Departure ID]))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi @Anonymous ,
My sample data is this
The measure
DistinctCount =
CALCULATE (
DISTINCTCOUNT ( 'Booking Table'[Booking ID] ),
ALLEXCEPT ( 'Booking Table', 'Booking Table'[Departure ID] )
)
You can check details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
My sample data is this
The measure
DistinctCount =
CALCULATE (
DISTINCTCOUNT ( 'Booking Table'[Booking ID] ),
ALLEXCEPT ( 'Booking Table', 'Booking Table'[Departure ID] )
)
You can check details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Try with Departure id?
COUNTROWS(SUMMARIZE(Booking, Booking[Booking Reference], Booking[Departure ID]))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
67 | |
42 | |
42 |
User | Count |
---|---|
46 | |
38 | |
28 | |
26 | |
25 |