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
Syndicate_Admin
Administrator
Administrator

Help with DAX formula to count on using criteria

Good night, I have the following table of which I want to create a measure that tells me, according to the seller all the customers code they bought for a value greater than 0, the value of the sale is in the soles column without IGV.
I do this in excel with the function count, yes, set and the ranges of criteria that I use are sellers and suns without igv, to find those who bought an amount greater than 0 I use as criterion ">0".

Diego2591_0-1618355602358.png

I don't know if I've been entirely clear with what I need to do, but I hope you can understand, thank you very much.

1 REPLY 1
amitchandak
Super User
Super User

@Syndicate_Admin , screenshot is too small data is not visible .

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

I think you need a meausre like

countx(filter(summarize(table, Table[seller], table[customer], "_1", calculate(Sum(Table[Value]), filter(Table, Table[soles] <>"IGV"))),[_1] >0),[customer])

 

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.