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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.