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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Divya904
Helper III
Helper III

DAX to derive distinct value

Hi Expert,

 

Please help me to resolve this. I have requirement as given below:

 

Capture101.PNG

what would be the DAX calculation to get the result as shown for 'Order Received'. Orders Received depends on distinct Sales Orders.

 

Thanks.

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

Hi Divya904,

 

Create a calculate column using DAX below:

Result = IF(CALCULATE(COUNT(Table1[Sales Order]), ALLEXCEPT(Table1, Table1[Sales Order])) = 1, Table1[Sales Document], BLANK())

捕获.PNG 

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Hi

 

Create a measure with this formula:

 

Order Received = DISTINCTCOUNT(Sales[SalesOrder])

 

Thanks

Raj

Hi Rajendran,

Thanks for your reply. It is bit tricky here.

 

I have fields - Number of Sales documents , Sales Order.

I need to create following logic in DAX.

 

Result = Number of sales documents where Sales Order is disctinct.

 

 

Your help is appreciated here. Thanks

Anonymous
Not applicable

Can you post some sample data for your scenrio?

 

Thanks

Raj

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.