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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rachelb123
New Member

Count distinct count of date rows based on specific row values

Hi! I am just starting out with PowerBI and this will be be first real dashboard. I am trying to create a dashboard that calculates the usage rate of other dashboards so the table would look like this :

ToolNameUserNameUserEmailUseDate

A

user1n7/1/2025
Auser3n7/2/2025
Buser2n7/1/2025
Cuser3n7/1/2025
Buser1n7/2/2025
Auser2n7/3/2025
Cuser3n7/4/2025
Cuser2n7/4/2025
Buser2n7/1/2025

And I would like to calculate usage rate with the formula = (days the app was used/total number of days in a quarter)*100.

Usage Rate for Tool A =  3/63

Usage Rate for B = 2/63

Usage Rate for C = 2/63

The current formula I have is throwing a syntax error : 

var ANumerator = CALCULATE(DISTINCTCOUNT('Usage Rate'[UseDate]),FILTER('Usage Rate','Usage Rate'[ToolName] = "A"))
1 ACCEPTED SOLUTION

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1755226183811.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Total days in Q3 are 92.  PBI file attached.

Hope this helps.

Ashish_Mathur_0-1755222526329.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you ! I am working with only working days and excluding holidays hence the 64 days. If I want this calculation to not be static how would I go about doing that? currently I have it just dividing by 64 but as the year goes by this will change. I made a working days table but I don't know how to ensure it counts the right quarter. 

You are welcome.  Would Holidays only be the weekend - Sat/Sun or would it incoude other holidays as well,  If it includes other holidays, then share that list


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

1/1/2025WednesdayNew Year's Day
1/20/2025MondayMartin Luther King Jr.Day
5/26/2025MondayMemorial Day
6/19/2025ThursdayJuneteenth National Independence
7/4/2025FridayIndependence Day
9/1/2025MondayLabor Day
11/27/2025ThursdayThanksgiving
11/28/2025FridayThanksgiving
12/25/2025ThursdayChristmas Day

These are the holidays and yes, it includes weekends too. 

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1755226183811.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you! Super Informative

 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors