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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Count of values

Hi everyone!

 

I'm a new user in Power BI and have what I believe to be an easy-solved problem. 

 

I have a dataset including three columns, namely "date", "country", and "status". The timeline for the dataset is apprioximately 1 year and it is structured in such way that the whole all dates and status for the first country is shown first, followed by the next and so on. There are five different values in the status column, "very fast", "fast", "neutral", "slow", and "very slow".

 

BobbyHalm_1-1606995012827.png

 

In my dashboard, I have created a filled map and would now like to create five different cards, each displaying the number of countries having a specific status for a specific date, e.g. the number of countries with the status "Neutral" on the 16th feb. 

 

I'm not sure how to do this in the best way and would really appreciate some help, thanks!

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , one of the way is to use the count of country on all card visuals ans the use visual level filter on status .

 

Second is create five measure like

calculate(count(Table[country]), filter(Table, table[status] ="Neutral"))  // five with each status

 

Use a date slicer. preferably a date table

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

View solution in original post

AlB
Super User
Super User

Hi @Anonymous 

You can just place Date and Status in slicers so that you can make the selection dynamically and then place this measure in a card visual:

 

Measure = DISTINCTCOUNT( Table1[Country] ) 

 

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

View solution in original post

2 REPLIES 2
AlB
Super User
Super User

Hi @Anonymous 

You can just place Date and Status in slicers so that you can make the selection dynamically and then place this measure in a card visual:

 

Measure = DISTINCTCOUNT( Table1[Country] ) 

 

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

amitchandak
Super User
Super User

@Anonymous , one of the way is to use the count of country on all card visuals ans the use visual level filter on status .

 

Second is create five measure like

calculate(count(Table[country]), filter(Table, table[status] ="Neutral"))  // five with each status

 

Use a date slicer. preferably a date table

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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