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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Hakimi99999
New Member

Daily Rate Calculation

IDDateDayIsGood
11/1/2018MondayTRUE
21/1/2018MondayTRUE
31/1/2018MondayTRUE
41/2/2018TuesdayTRUE
51/3/2018WednesdayTRUE
61/3/2018WednesdayTRUE
11/4/2018ThursdayTRUE
21/5/2018FridayFALSE
31/5/2018FridayTRUE
91/5/2018FridayFALSE
101/6/2018SaturdayTRUE
111/7/2018SundayFALSE
121/7/2018SundayTRUE
131/8/2018MondayFALSE
141/9/2018TuesdayTRUE

 

Hi I am looking for some help, if I want to calculate daily good rate( Daily True/ Dail True and False) , how do I create measure?

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Hakimi99999,

 

Try this calcultated measure:

 

 

Daily good rate =
CALCULATE ( COUNTA ( DailyData[IsGood] ); DailyData[IsGood] = TRUE () )
    / CALCULATE ( COUNTA ( DailyData[IsGood] ); ALLSELECTED ( DailyData[IsGood] ) )

As you can see below it will give you the percentage on the selected date:

 

dailytrye.png

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @Hakimi99999,

 

Try this calcultated measure:

 

 

Daily good rate =
CALCULATE ( COUNTA ( DailyData[IsGood] ); DailyData[IsGood] = TRUE () )
    / CALCULATE ( COUNTA ( DailyData[IsGood] ); ALLSELECTED ( DailyData[IsGood] ) )

As you can see below it will give you the percentage on the selected date:

 

dailytrye.png

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.