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
Anonymous
Not applicable

unique ids calc from dax

i have table named company and i have product id ,sales amount and month column, i need unique product ids from every month where sales amount less than 100 ,Pls suggest dax

2 REPLIES 2
Anonymous
Not applicable

Product id not getting into dax in second dax,, find my table below

PR IDSales AMTMonth
19401-Apr-22
27302-May-22
36902-Jun-22
411103-Jul-22
55603-Aug-22
66003-Sep-22
111504-Oct-22
28404-Nov-22
310005-Dec-22
45105-Jan-23
47603-May-22
58403-Jun-22
610005-Jul-22
15109-Aug-22
110008-Sep-22
110206-Oct-22
bhelou
Responsive Resident
Responsive Resident

Hi , try these , change the source of table and column names 

= DISTINCTCOUNTX( FILTER( company, company[sales amount] < 100 ), company[product id] )

Or try to use this : 

= DISTINCTCOUNTX( FILTER( company, company[sales amount] < 100 && company[month] = "January" ), company[product id] )

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.