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

Create a Measure for below logic

 

I have one problem kindly help me to sort this out:
I have one data set in which brands and respective their respective search values are there. And I have another dataset in which I have done unpivoting and have one column name as Attributes and other as Values. Based on these Attributes values are present and their respective brand is present.
Now, I need to implement a relation between these two datasets as if in 'Data2', Attributes = A then Values should be > 0 and based on this brands should pick in the table.

 

Attributes would be in Slicer (A,B,C and D as dropdown). In Table in Rows as "Brand" variable . But when I select "A" in Slicer then in table I should see only sub categories of A same with B, C and D.

BrandSIABCD
B0.8398810100
Bb6.5144070200
Bbb0.039750300
B0.8946150100
A1.04851000
Aa0.4495272000
Aaa0.364363000
A0.9659641000
Aa0.3747182000
Aaa0.3533373000
A1.4901341000
Aa0.5457352000
Aaa0.4998313000
A1.3308591000
Aa0.4657942000
Aaa0.4157873000
A1.13461000
Aa0.369042000
A1.3240111000
Aa0.5055752000
Aa0.0970572000
Aaa0.576883000
C2.1252010010
Cc2.1686120020
Ccc2.0370370030
C0.9823630010
Ccc1.2983140030
C2.8499010010
Cc1.1897860020
Ccc3.2481630030
Dd8.4764450002
D2.2242670001
Ddddd0.0344270005

Dataset2 (unpivot)

MarketBrandSIAttributesValues
USB0.839881B1
USBb6.514407B2
USBbb0.03975B3
USB0.653297B1
USBb4.452887B2
USBbb0.040627B3
USB0.781134B1
USA1.0485A1
USAa0.449527A2
USAaa0.36436A3
USA0.965964A1
USAa0.445827A2
USAaa0.273562A3
USAaa0.320927A3
USAaa0.224143A3
USC2.125201C1
USCc2.168612C2
USCcc2.037037C3
USC0.982363C1
USCc0.946146C2
USCcc1.122596C3
USCcc0.77872C3
USC0.457525C1
USDd8.476445D2
USD2.224267D1
USDdddd0.034427D5

Output

SK87_0-1657275744032.png

 

 

1 ACCEPTED SOLUTION
SK87
Helper III
Helper III

I solved it.

Thanks everyone for your help.

View solution in original post

2 REPLIES 2
SK87
Helper III
Helper III

I solved it.

Thanks everyone for your help.

v-easonf-msft
Community Support
Community Support

Hi, @SK87 

Not sure what you mean. What is your expected result?
What fields need to be added to column and value in Martix?

Best Regards,
Community Support Team _ Eason

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.

Top Solution Authors