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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ADSL
Post Prodigy
Post Prodigy

Calculate & Merge Column of Sales Order

Dear BI Community Team,

 

I have a sales order table and want to merge the column name "Customer Code" & "Salesman Code" into one column and apply the measure Distinct Count of the merge column.

 

2022-10-16_21-00-29.png

 

Any Suggestion?

 

Thanks and Regards,

1 ACCEPTED SOLUTION
lukiz84
Memorable Member
Memorable Member

Hi,

 

MergedColumn := Sales[Customer Code] & Sales[Salesman Code]

YourMeasure = DISTINCTCOUNT(Sales[MergedColumn])

View solution in original post

2 REPLIES 2
lukiz84
Memorable Member
Memorable Member

Hi,

 

MergedColumn := Sales[Customer Code] & Sales[Salesman Code]

YourMeasure = DISTINCTCOUNT(Sales[MergedColumn])

Hi @lukiz84 ,

 

It's working. Thank you very much for your feedback and advise.

 

Best Regards,

 

Helpful resources

Announcements
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.