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

Match Multiple Values in a cell with another cell

Hi,

 

I have a dataset as below:

 

NameSizeTypeTier
A100
200
300
400
Unmanaged
Unmanaged
Managed
Managed
Standard
Standard
Standard
Premium
B

100

200

300

400

Unmanaged
Managed
Unmanaged
Unmanaged

Premium

Premium

Premium

Premium

 

In Name A, I have four values on other cells. I want to match like below:

 

Name: A

Size: 300

Tier: Standard

Type: Unmanaged

 

Name: A

Size: 300

Tier: Standard

Type: Managed

 

Name: A

Size: 400

Tier: Premium

Type: Managed

 

Likewise:

 

Name: B

Size: 800

Tier: Premium

Type: Unmanaged

 

Name: B

Size: 200

Tier: Premium

Type: Managed

 

I tried the below method but failed:

Split the Columns by rows. When i did that the Size rows are also increasing, hence the count doesn't happen correctly.

 

Any other methods please??

1 ACCEPTED SOLUTION

Hi,

You may download my 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

10 REPLIES 10
JosefPrakljacic
Solution Sage
Solution Sage

Hello @Anonymous 

 

here you have my example file


First I filled in all your lines with the names (A,B) in the PowerQuery Editor with the fill down option.

Example.gif

 

And this table was loaded into PowerBI from then on it was easy to achieve your desired result.

2019-10-07 07_31_53-Example.xlsx - Excel.png

 

If this post was helpful may I ask you to mark it as solution and give it a 'thumbs up'? This will also help others

Have a nice day!

BR,
Josef
Graz - Austria

Anonymous
Not applicable

Hi. Thanks for your response and sorry for the late response.

 

Data set is not like you mentioned. It is like below:

 

1.PNG

 

When I spli Size, Type and Tier by Rows, the data becomes as below:

 

2.PNG

And the list goes on...................... I am not able to get the correct sum of the Size according toType and Tier.

 

Please help me with this!! Thanks in advance.

 

@JosefPrakljacic 

Hi,

Drag Type and Tier to your Table visual and write this measure

=SUMX(VALUES(Data[Name]),MIN(Data[Size.]))

Hope this helps.


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

Hi,

 

I doesn't.

 

I split the Size column into rows and then calculated the sum of Size. It returns me the sum correctly. But still the Tier and Type I couldn't the achieve the expected result.

 

Any other headsup please!!!

 

Regards,

Sarath Kumar S

Hi,

Share the link from where i can download your PBI file.


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

https://drive.google.com/open?id=1R4LISdRTpNS8yLUCswB4-VTLVE1qDMpo

 

Please find the link above to download PBIX.

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Thanks a lot @Ashish_Mathur . It really helps!!

You are welcome.


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

Hi, @v-lid-msft ,

 

Can you please help me with this??

 

Thanks in advance.

 

Regards,

Sarath

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.