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
VuongLM93
Helper III
Helper III

Maxx of concatenated columns?

Dear all,

I have a report connecting to a data model in my company,

I cannot add table/ columns....but only measures since this model was not created by me,

 

I have 2 table with following columns

Dim - Product:  Brand - Flavour - Pack type - Pack Size - SKU name - SKU Code

Fact - Inventory : Inventory  (other columns were hide by admin I think)

Currently a have a measures to see maximum inventory in a month filter :

MAXX (KEEPFILTERS (VALUES ( SKU Code) ) ,Calculate (Inventory))

 

This works well but I dont want SKU Code, but a concatenated column of : Concatenate(Brand - Flavour - Pack type - Pack Size). 

 

since I am not allowed to create additional column in this data model, is there anyway to modify the measure to get the desired result ?

 

Thanks so much !!!!!

 

1 ACCEPTED SOLUTION

Hi,

You may download the PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

Share some data, describe the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The attached sample is in the link gg drive below,

https://drive.google.com/open?id=1C1mFEY9woeijiYP-1l_AeoxpVQTror-1

 

@Ashish_Mathur 

 

Hi,

Show the exact result that you want to see in the Putput worksheet so that i can tally my formula's result with your expected result.  Also, in the Dim-Distribotor Table, how can one distributor have 2 codes.  Is that a mistake?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

sorry I have refresh the data and output again,

Yes Somestimes 1 Distributor Code have 2 name in reality , but I will just keep the unique values only,

Basically I want the a Measure to show the Maximum of values ,

If filter by month then it will be the maxiumum of all dates in that month only,

 

Hi,

You may download the PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur  working like magic, lots of thank to your help !!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur  After scaling to 60 SKU x 330 Distributors and 2018 - 2019 daily,

this "measure" become very slow to calculate,

I don't know if the Summarize is the problem?

Not sure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.