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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Justas4478
Post Prodigy
Post Prodigy

Counting values for measure

Hi I am trying to create the measure that count number of voids where void value is = 0.99p.

measure.PNG 

However [Voids Volume] and [Voids Value] are measures so calculate function does not want to work.

The end result that I am trying to get would look something like this only it would show them by date for each store filtering in to Clerk ID registed to that store.

Capture.PNG 

I am not sure what modifications need to be made so it would work with the measures.

Thanks.

1 ACCEPTED SOLUTION

I found the change to the measure that solved the problem.

Voids99p = CALCULATE(COUNTROWS(filter(Actuals,[Voids Value]=0.99)))

View solution in original post

4 REPLIES 4
Justas4478
Post Prodigy
Post Prodigy

I have solution that almost works. 

Justas4478_0-1667211986271.png

Voids99p = CALCULATE(COUNT('Product'[SKU Number]),filter(Actuals,[Voids Value]=0.99))

The problem is that when i count based on SKU number(Product number) when there are multiple voids of the same product in a day it counts it as one since all same products have same SKU number. I cant see how else I can change measure so it would count same product voids not as single void.

Maybe you have to choose the count option instead of the count (distinct) option.
Just go to build visula in the right side and change what you have selected from count to count (distinct).

count.png

I found the change to the measure that solved the problem.

Voids99p = CALCULATE(COUNTROWS(filter(Actuals,[Voids Value]=0.99)))

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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