Skip to main content
cancel
Showing results for 
Search instead 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

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.