Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello guys,
I need help for this requirement. Number of tickets rejected that have been passed previously(create_time) by commercial queue.
Is it possible to do it with a measure?
Please help! Any advice is welcome.
I appreciate your help guys!
Thank you!
Solved! Go to Solution.
Hi,
This should work for you:
___CountPassedbyCommercialPrev =
var _dateRejected = CALCULATE(MAX('Table'[create_time]),'Table'[state]="rejected")
return
COUNTROWS (
FILTER (
ALL ( 'Table' ),
'Table'[ticket_id] = SELECTEDVALUE ( 'Table'[ticket_id]) && 'Table'[queue] = "commercial" && 'Table'[create_time] <= _dateRejected )
)
___CountPerTicket =
SUMX(VALUES('Table'[ticket_id]),[___CountPassedbyCommercialPrev])
Link to the file here.
In this video I explain how to approach and build such a measure. Hope its helpfull.
Kind regards,
Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Hi!
Try that:
Number of Tickets Rejected by Commercial =
CALCULATE(
COUNTROWS(Table),
Table[state] = "rejected",
Table[queue] = "commercial"
)
Hi,
This should work for you:
___CountPassedbyCommercialPrev =
var _dateRejected = CALCULATE(MAX('Table'[create_time]),'Table'[state]="rejected")
return
COUNTROWS (
FILTER (
ALL ( 'Table' ),
'Table'[ticket_id] = SELECTEDVALUE ( 'Table'[ticket_id]) && 'Table'[queue] = "commercial" && 'Table'[create_time] <= _dateRejected )
)
___CountPerTicket =
SUMX(VALUES('Table'[ticket_id]),[___CountPassedbyCommercialPrev])
Link to the file here.
In this video I explain how to approach and build such a measure. Hope its helpfull.
Kind regards,
Steve.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Great job, it is great !!!
Grateful for your help.
@powerbi_alvic , Welcome, hope you like the video? Thumbs up on the post(s) if you do 🙂
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Thank you very much for answering.
But, the problem is that the conditions are in a different row (state = rejected, queue = commercial)
I attach pbix file here
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |