cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## Need Help With Yes/No Daily Chart

Hello,

New user here, can someone please assist me with below?

I have a chart I need to create that is based of a Yes/No Column, I used the following formula:

% Yes/No = DIVIDE(COUNT(Table2[Yes/No]),CALCULATE(COUNT(Table2[Yes/No]),ALL(Table2)))

And I am getting below Chart:

However, issue is that I need the percentage to be daily, not total from the entire information and I am unsure on how to accomplish this.

1 ACCEPTED SOLUTION
Super User

@cebd_31 , Try like

% Yes/No = DIVIDE(COUNT(Table2[Yes/No]),CALCULATE(COUNT(Table2[Yes/No]),ALLexpect(Table2, Table2[day])))

5 REPLIES 5
Super User

@cebd_31 , Try like

% Yes/No = DIVIDE(COUNT(Table2[Yes/No]),CALCULATE(COUNT(Table2[Yes/No]),ALLexpect(Table2, Table2[day])))

Regular Visitor

You are awesome my man!!

Solution Sage

Hi @cebd_31 ,

You could do it with a couple of measures as well

``````Yes = divide(
calculate(countrows('table2'),'table2'[Yes/No] = "Yes"), calculate(countrows('table2'),  ALL ( Table2[Yes/No] ))

No= divide(
calculate(countrows('table2'),'table2'[Yes/No] = "No"), calculate(countrows('table2'),  ALL ( Table2[Yes/No] ))``````

I hope this helps,
Richard

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

Proud to be a Super User!

Super User

Hi @cebd_31

Try

``````% Yes/No =
DIVIDE (
COUNT ( Table2[Yes/No] ),
CALCULATE ( COUNT ( Table2[Yes/No] ), ALL ( Table2[Yes/No] ) )
)``````

Please mark the question solved when done and consider giving kudos if posts are helpful.

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

Cheers

Anonymous
Not applicable

That should work.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors