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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mike_newbs
Frequent Visitor

Create a line chart visuals that track %

Hello

 

Our business sends leads to business partners across the country who use them to sell products.

 

The leads have to be accepted by the partner. There are three different acceptance rates:

  • Accepted = Partner has accepted it
  • Waiting to be accepted = Lead is with a partner and they have 24 hours to accept it
  • Not accepted = Lead was not accepted by the partner

 

I created a graph in Excel that tracks the Acceptance Rates, split by product and month.

 

mike_newbs_0-1703087678929.png

 

The data I use is basically:

 

Lead createdProductAcceptance status
AprProduct 1Accepted
AprProduct 1Accepted
MayProduct 1Waiting to be accepted
MayProduct 2Not accepted
JunProduct 3Not accepted

 

The graph in Excel shows the % of leads (split by month and product) accepted. Most cases this is over 90%

 

How can I do this in Power Bi?

 

 

Also is it possible to avoid using the "Group by" function? Each lead has its own ID that is linked to other visuals. Ideally I would like to keep the ID because if a user filters by product on a sliver in the report, it updates all other visuals and it would be great to have the line chart update as well.

 

Kind regards

 

Michael

 

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @mike_newbs ,

Please try this way:
You can use this DAX to create a new measure:

Accepted = 
DIVIDE(
    CALCULATE(
        COUNTROWS('Table'),
        'Table'[Acceptance status] = "Accepted"
    ),
    CALCULATE(
        COUNTROWS('Table'),
        REMOVEFILTERS('Table'[Acceptance status])
    ),
    BLANK()
)

vjunyantmsft_0-1703127370377.png

Sorry, the graphs don't look great created because the data was randomly created by me, but you should be able to use this DAX to achieve what you need. For Waiting to be accepted and Not accepted you just need to fine tune them in the DAX.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @mike_newbs ,

Please try this way:
You can use this DAX to create a new measure:

Accepted = 
DIVIDE(
    CALCULATE(
        COUNTROWS('Table'),
        'Table'[Acceptance status] = "Accepted"
    ),
    CALCULATE(
        COUNTROWS('Table'),
        REMOVEFILTERS('Table'[Acceptance status])
    ),
    BLANK()
)

vjunyantmsft_0-1703127370377.png

Sorry, the graphs don't look great created because the data was randomly created by me, but you should be able to use this DAX to achieve what you need. For Waiting to be accepted and Not accepted you just need to fine tune them in the DAX.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-junyant-msft 

 

Thank you very much for your help, thats perfect.

 

Kind regards

 

Michael

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.