Reply
Jeffrey_VC
Helper III
Helper III

Countrows exclude some value

Hi,


I'm looking for a solution to count rows but I need to exclude some data.

Now i have the following measure:

 

Count =
CALCULATE(COUNTROWS(Logdata),
Logdata[EventType] = 0)
 
But I need to exclude to column logdata.Datafield2 with the value "9999".
Any sugestions?
 
Greets, Jeffrey
1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @Jeffrey_VC 

try v2 below

Count _v2=
CALCULATE(COUNTROWS(Logdata),
Logdata[Datafield2] <>"9999",
Logdata[EventType] = 0)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

2 REPLIES 2
some_bih
Super User
Super User

Hi @Jeffrey_VC 

try v2 below

Count _v2=
CALCULATE(COUNTROWS(Logdata),
Logdata[Datafield2] <>"9999",
Logdata[EventType] = 0)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi @some_bih,

 

Thanks, this is working!

avatar user

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)