cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
twister
Regular Visitor

divide with condition less than

Hi All,

 

Anyone can help me to calculate this formula? I want to get cumulative value (in %) using below dataset.

Ex: (40/59) * 100

 

40 refer to ticket id which is FR_Hour < 5

59 refer to total ticket

dax1.jpg

 

Thanks

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @twister 

 

Try something like this.

Measure = 
DIVIDE( 
    CALCULATE(
        COUNTROWS( 'Table' ),
        'Table'[FR_Hour] < 5 ),
    COUNTROWS( 'Table' )
) * 100

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @twister 

 

Try something like this.

Measure = 
DIVIDE( 
    CALCULATE(
        COUNTROWS( 'Table' ),
        'Table'[FR_Hour] < 5 ),
    COUNTROWS( 'Table' )
) * 100

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

nice..its work perfectly..thanks

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors