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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JonathanJohns
Helper III
Helper III

Calculate a percentage with a filter

Good morning everyone,

 

I get this database :

SemaineLotValeur
42264480
42264580
42300175
42300372
42320175
42320178
42320370
42503275
42620670
4312570
43264378
43264478
43264578
43300180
43300280
43300370
43320178
43320180
43320280
43503280
43620270
43620770
43R0070

 

I would like to calculate the percentage of Lot with a result of Valeur less than 72 or egal. I would like to do this calculation per week.

 

Do you know how to do to make this calculation please ? 

 

Thank you for your help.

 

Jonathan

1 ACCEPTED SOLUTION

@JonathanJohns

 

Hi, try with this Dax Code.

 

 

Percent less than 72 or equal =
DIVIDE (
    CALCULATE ( COUNT ( Table1[CodRuta] ), Table1[ALC] <= 72 ),
    COUNT ( Table1[CodRuta] )
)

 

Percent.png

Let me know if works




Lima - Peru

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi i needDax to create a pie chart 
I have 50 students and 4 subjects, If one students pass in 4 sbujects then it should be Pass /if one student fail in 1 subject they consider to fail will you help me regarding this 

 

 

JonathanJohns
Helper III
Helper III

UP

@JonathanJohns

 

Hi, try with this Dax Code.

 

 

Percent less than 72 or equal =
DIVIDE (
    CALCULATE ( COUNT ( Table1[CodRuta] ), Table1[ALC] <= 72 ),
    COUNT ( Table1[CodRuta] )
)

 

Percent.png

Let me know if works




Lima - Peru

Thank you this calculation works.

 

Have a good day.

 

Jonathan

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.