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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pears980
New Member

Excel to power bi

Have a calculation that i need to input to power bi.  Any help is greatly appericated.

 

Excel expression...

=COUNTIFS(Usage[Treatment Variance],"<75%",Usage[Pump is on Mirador and fully operational],"")+COUNTIFS(Usage[Treatment Variance],"<75%",Usage[Pump is on Mirador and fully operational],"No")

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi,

Yo could try below measure :

_ExcelFormula = CALCULATE(DISTINCTCOUNT(Sheet175[Treatment Variance]),
                          FILTER(Sheet175,
                                 Sheet175[Treatment Variance] < 0.75 &&
                                 or(Sheet175[Pump is on Mirador and fully operational] = "",
                                    Sheet175[Pump is on Mirador and fully operational] = "No")
                                )
                        )
MahyarTF_0-1662704753921.png

 

Appreciate your Kudos

Mahyartf

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, (I just saw that @MahyarTF posted and that look like it would work better!) 
Anyhow, here is how I started tackling the problem.

I think I would need some sample data in order to get this right. 

I think it would look something like:

Counting = 
Calculate(COUNTA('Usage'[Treatment Variance]),
FILTER('Usage', 'Usage'[Treatment Variance] < 75% &&
Usage[Pump is on Mirador and fully operational] = "" ||
'Usage'[Treatment Variance] < 75% &&
Usage[Pump is on Mirador and fully operational] = "No")

However, this is just a general concept, I think you could also refer to this: https://community.powerbi.com/t5/Desktop/Calculate-with-OR-AND-NOT-in-filter/m-p/60692

MahyarTF
Memorable Member
Memorable Member

Hi,

Yo could try below measure :

_ExcelFormula = CALCULATE(DISTINCTCOUNT(Sheet175[Treatment Variance]),
                          FILTER(Sheet175,
                                 Sheet175[Treatment Variance] < 0.75 &&
                                 or(Sheet175[Pump is on Mirador and fully operational] = "",
                                    Sheet175[Pump is on Mirador and fully operational] = "No")
                                )
                        )
MahyarTF_0-1662704753921.png

 

Appreciate your Kudos

Mahyartf

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors