cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Filter on Measure

Hi,

 

I have this measures:

Purchase Amount = SUM(Purchases[Amount])

 

Jobs Cnt3 (excl No purchase) =

CALCULATE(
COUNTROWS(Job),
FILTER(Purchases, CALCULATE([Purchase Amount]) >0)
)

and it returns:

Capture 22.PNG

I want the measure to return 0 because the sum of Purchases amount is 0.

 

I don't know why the it is not working.

 

appreciate your help.

I want t

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Sorry for the late reply.

I figured it out, there was an issue with data, some of there figures were not 0, I had figures like 0.0000000005, so it was not exculding it.

Thanks for your feedback.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@veenashenolikar I understand it is returning the row count. what I want is to retrun the row count only for job numbers that have Purchases amount =0, the measure Purchases amount is from Purchases table that is joined to the Job table on Job Numbe column.

Anonymous
Not applicable

what I meant was to not count any Job Number that have Purchase Amount is 0.

Hi  @Anonymous ,

 

Could you pls provide some sample data for test?

 

Best Regards,
Kelly

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

hi @Anonymous ,

 

The Jobs Cnt3 (excl No purchase) measure is returning the count of rows.. not sum of purchase amount. 

Can you elaborate what exactly do you want Jobs Cnt3 (excl No purchase) measure to return?

 

Thanks,

Veena

Anonymous
Not applicable

Sorry for the late reply.

I figured it out, there was an issue with data, some of there figures were not 0, I had figures like 0.0000000005, so it was not exculding it.

Thanks for your feedback.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors