March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I need help finding a solution for the following:
I have a table called "tickets," and one license plate can have multiple tickets. I need to categorize the counts, such as "Number of license plates having 1 ticket" (see attached image).
How can I achieve this? If I filter the dates, the value should change according to the specific time period.
Additionally, I have created two columns for this purpose.
Please let me know how to proceed
1)
Solved! Go to Solution.
Hi,
I have answered a similar question in the attached file.
Hope this helps.
Hi @RasDev1
Thanks for the reply from SamWiseOwl .
The following is for your reference:
My sample:
Create a measure as follows
Recurring Licenceplate count =
CALCULATE(
COUNT('tickets'[id]),
FILTER(
'tickets',
'tickets'[License Plate] = MAX('tickets'[License Plate]) && 'tickets'[Date] IN VALUES(tickets[Date])
)
)
Recurring Category = SWITCH(TRUE(),
[Recurring Licenceplate count] = 1, "No of licence plate having 1 ticket",
[Recurring Licenceplate count] = 2, "No of licence plate having 2 tickets",
[Recurring Licenceplate count] = 3, "No of licence plate having 3 tickets")
Output:
If you need to dynamically change the data based on the slicer, you need to use measure, but measure will be affected by the context of the visualization, so you need to put the [License Plate] column used in the formula into the visualization.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
when i remove a licence plate it look like this
but i need each categorize wise,
like no of licence plate having 1 ticket ,2 ticket,3 ticket,.. more then 5 ticket
Thank you for sharing this, but I need it to display as shown in the reference image. The count should represent unique license plate counts.
any possible solution for this?
Hi @RasDev1
First create a table with those values listed out:
Put this into your table visual with a measure like this:
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Thank you for sharing this, but I need it to display as shown in the reference image. The count should
when i change a date slicer filter it should be dynamically change,
any possible solution for this?
Hi @RasDev1
Did you try it?
It is dynamically changing on mine.
Measures can be recalculated on the fly.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
90 | |
90 | |
66 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |