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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Creature
Frequent Visitor

Pull Random Ticket number by date and user

Hey All,

 

long story short we are doing some QA and need to be able to pull random tickets from my analyst. 
We have a column of Number which is ticket number, Assigned to which is User, and then date is labeled as Closed Date CST.

 

How would I be able to put this on a dashboard or card for someone to use?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Creature ,

I create a table as you mentined.

vyilongmsft_0-1739239045058.png

Then I think you can create a new calculated column.

Column = RAND()

vyilongmsft_1-1739239099232.png

Next you can create a measure and a slicer.

Measure = 
VAR SelectedColumn =
    SELECTEDVALUE ( 'Table'[Column] )
RETURN
    CALCULATE ( MAX ( 'Table'[Number] ), 'Table'[Column] = SelectedColumn )

vyilongmsft_2-1739239230428.png

vyilongmsft_3-1739239250694.png

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Creature ,

I create a table as you mentined.

vyilongmsft_0-1739239045058.png

Then I think you can create a new calculated column.

Column = RAND()

vyilongmsft_1-1739239099232.png

Next you can create a measure and a slicer.

Measure = 
VAR SelectedColumn =
    SELECTEDVALUE ( 'Table'[Column] )
RETURN
    CALCULATE ( MAX ( 'Table'[Number] ), 'Table'[Column] = SelectedColumn )

vyilongmsft_2-1739239230428.png

vyilongmsft_3-1739239250694.png

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

-Make the ticket numbers unique

-add a random number column

-grab the first x rows sorted by the random number column.

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.