Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I am extremely new to PowerBi (this is the first dataset I'm trying to pull in). The issue I'm running into is that my dataset has the count of students enrolled for each of our emphasis areas and then it has columns that show the semester and the year as a subcategory. How do I pull this data in so that we can then look up trends for that particular emphasis area.
Solved! Go to Solution.
Hi @gtanya33 ,
According to your description, you want to use Power BI do some analysis with the data structure you showed.
I create a sample.
Here's my solution.
In Power Query, after getting data, it display like this:
1.Select Use First Row as Headers, get this:
2.Select all the Year column at the same time, then click Unpivot Columns.
Result:
3.Add a custom column.
Semester = if Text.Contains([Attribute],"_")then "Winter" else "Fall"
Result:
4.Split the year column by "_"
5.After remove the unneeded column and rename columns, get this table:
Now, you can use a line chart to display the trend of each emphasis or a matrix to show the data.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @gtanya33 ,
According to your description, you want to use Power BI do some analysis with the data structure you showed.
I create a sample.
Here's my solution.
In Power Query, after getting data, it display like this:
1.Select Use First Row as Headers, get this:
2.Select all the Year column at the same time, then click Unpivot Columns.
Result:
3.Add a custom column.
Semester = if Text.Contains([Attribute],"_")then "Winter" else "Fall"
Result:
4.Split the year column by "_"
5.After remove the unneeded column and rename columns, get this table:
Now, you can use a line chart to display the trend of each emphasis or a matrix to show the data.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
37 |