Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I'm utilizing the open tickets solution to solve hotel occupancy, from https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364, but there are some reservations that are shared. Each reservation has it's own reservation number or ticket number, but they share a hotel room and share number. Therefore using countrows overstates the number of room nights by double counting shares. I'm attempting to get a distinct count of the share numbers day by day that can be summarized.
Using distinctcount('Table'[Share]) gives the correct number of shares per day, but of course doesn't work for mulitple days. Using
Tickets Open = VAR tmpTickets = ADDCOLUMNS('Tickets',"Effective Date",IF(ISBLANK([Closed Date]),TODAY(),[Closed Date])) VAR tmpTable = SELECTCOLUMNS( FILTER( GENERATE( tmpTickets, 'Calendar' ), [Date] >= [Opened Date] && [Date] <= [Effective Date] ), "ID",[Ticket Num], "Date",[Date] ) VAR tmpTable1 = GROUPBY(tmpTable,[ID],"Count",COUNTX(CURRENTGROUP(),[Date])) RETURN COUNTROWS(tmpTable1)
But all of my results have been no where accurate.
Here is a link to my test data.
Thank you in advance for any assistance or direction.
Seth
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
7 | |
4 | |
4 |