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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
dsplaymaxxis
New Member

Issues to create a data model

Hi , I need some help to solve a problem in my job 

 

I need to transform the as is mentioned attached to my to be modeling .

 

To sum up :

 

I need to count how many times each status was Stored in the table above .

 

Count how many times the channel URA received the status "available" , "NO Info" , etc.

 

If the status was not part of that channel , so I would like to place the value 0 in the Tobe table .

 

How do I create that in DAX ou power query?

 

 

  

16595549678085105052077076401300.jpg

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @dsplaymaxxis,

You can do unpivoted columns on your fields to convert them to attribute and values.

Unpivot columns (Power Query) (microsoft.com)

Then you can create a matrix with 'product' and 'value' as rows, 'attribute' as the column, 'value' with count mode on the matrix value field to achieve your requirement.

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
dsplaymaxxis
New Member

this is the problem by print screen

dsplaymaxxis_0-1659621534734.png

 

Anonymous
Not applicable

HI @dsplaymaxxis,

You can do unpivoted columns on your fields to convert them to attribute and values.

Unpivot columns (Power Query) (microsoft.com)

Then you can create a matrix with 'product' and 'value' as rows, 'attribute' as the column, 'value' with count mode on the matrix value field to achieve your requirement.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors