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

Be 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

Reply
rashidanwar
Helper III
Helper III

Create dynamic groups/categories, to be used as legends in a visual, based on date range slicer

Hi All

I have a table containing 3 columns. trip_date, trip_id and country_name.
I want to create a column chart showing trip month on x-axis and count of trip_id (number of trips) on y-axis.
I have a trip date slicer at the top.

Now if a country has count of trips less than 3 for the selected date range then it shoud be dynamically categorised/grouped to   
"Other" else it shoud be under the country_name. 

For example 
trip_date      trip_id              country_name
1/1/2023      1                      USA
1/2/2023      2                      USA
1/3/2023      3                      USA
1/4/2023      4                      Canada
1/5/2023      5                      Canada
1/6/2023      6                      Canada
1/7/2023      7                      Canada
1/3/2023      8                      Brazil
1/4/2023      9                      Brazil
1/10/2023    10                    Brazil

Output
=> If I select the date range from 1/1/2023 to 1/5/2023 then Brazil and Canada will be grouped under "Others" becasue they have less then 3 trip counts for the selected date range.
=> If I select the date range from 1/3/2023 to 1/8/2023 then USA and Brazil will be grouped under "Others" becasue they have less then 3 trip counts for the selected date range. 

I would appreciate any help in this regards. 

Best Regards
Rashid Anwar

1 REPLY 1
amitchandak
Super User
Super User

@rashidanwar , if think you need a very similar solution, the filter is not on rank measure but on sum of qty measure

Power BI- TOPN with Others- https://youtu.be/I_TY4hVlzAE

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.