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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
rebam12
Helper I
Helper I

data transformation

I have this type of question .. now i dont know how i map the data and create the graph.. 

 

Source

Values 1-6 

1

Not familiar

 

2

Do not trust at all

3

Slightly trust

 

4

Moderately trust

5

Mostly trust

 
 

Completely trust

 

 

Q2s1  Search engine *e.g google

Q2s2  GenAI answer engine *CHATGPT

Q3s3  Offical Prduct

and data is 

 

Now how should i map the data ..i try to unpivot the data but no results.

ID

Q2s1

Q2s2

                Q2s3

1

1

2

3

2

2

2

1

3

3

1

2

4

3

3

2

5

3

1

1

6

2

3

3

7 REPLIES 7
audreygerred
Super User
Super User

Hi! You would def want to unpivot in Power Query so that your data looks like below:

audreygerred_0-1727710991862.png

Then, in Power BI desktop you would join this table to the value field in the unpivot

audreygerred_1-1727711030389.png

And, you would join this table to the attribute field

audreygerred_2-1727711079108.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@audreygerred u mean i have to create 2 tables for join ?

These are the three tables you would have:

1.

audreygerred_0-1727711571227.png

2.

audreygerred_1-1727711592921.png

3. 

audreygerred_2-1727711605885.png

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





elitesmitpatel
Solution Supplier
Solution Supplier

give us the dummy data and and output u want according to the dummy data

i already the paste the data.. and output i dont know .. this is waht i want.. how i create graphs from these tables

Greg_Deckler
Super User
Super User

@rebam12 If you unpivot the data in the 2nd table then you should be able to form a relationship between your first and seconnd table and display the text using RELATED. If you leave them unrelated you can use LOOKUPVALUE or MAXX( FILTER( .. ), ... ) to lookup the text value. Not sure what your ultimate end goal is though:

 

Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

THANKS

 

i tried many time to identify how should i vizuale the data but did not get any clue..

 

like if i drag ID on x axis AND values on y axis.. then how i cateogries the Q2s1...Q2s3 in one graph   and first how i transform the data

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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