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
salmanaslam
Regular Visitor

How to combine multiple pairs of columns into a single pair

Hi everyone,

 

My data it looks like that;

ID     Date     Name     Brand 1     Brand 2     Brand 3     Brand 4     Brand 5

1      23/4        A           Jazz          Candy        Warid      Jan Food      Warid

2       8/3         B          Khaadi        Jazz          Jazz               -              Khaadi

3     10/8         C         Bonanza   Bonanza     Foodie           -              Jazz

 

Now my query is that, how to show % at all brands into a single graph.

They are not showing in single graph when i draw them.

 

Kinldy tell me what can i do for this.

 

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @salmanaslam 

Could you show an exmaple of what the result "% at all brands into a single graph" should be?

I make a test as below:

Unpivot columns(from "Brand 1" to "Brand 5") in Edit queries

3.png

"apply&&close"

create measures

Measure = CALCULATE(DISTINCTCOUNT(Table1[Attribute]),ALL(Table1))

Measure 2 = CALCULATE(COUNT(Table1[Attribute]),FILTER(ALLEXCEPT(Table1,Table1[Name]),Table1[Value]<>BLANK()))

Measure 3 = [Measure 2]/[Measure]

4.png

 

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for replying me.

 

But i want to to show brand wise percentage not name wise.

Graph should be like this;

 

Untitled.jpg

 

Please guide me,

Anyone there?????

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.