March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I am currently working with an unstructured dataset that looks like this.
It basically shows the year, the different subjects (A,B,C) and the number of students obtaining the marks 50-60 at school and state level. The data is to be read in rows.
Eg Subject A, 1 student got a mark of 52 at school level where as 123 students got the same mark at state level.
I want to create a custom column chart where it has the marks (50-60) on the x-axis. The number of students on the y-axis. The column chart is to display data of students at state level however, where there are students obtaining the same marks at school level it must show that "bar" as a different colour. See Image below for desired results for subject A visual
As I hover over the score 52 and 55, I can see there were 1 and 4 students who recieved the same mark. Obviously, will need slicers namely in subjects and year.
I'm able to do this in excel, but can't seem to figure it out on Power Query/Power BI.
Any help/direction is greatly appreciated.
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
Share data in a format that can be pasted in an MS Excel file.
Hi Ashish,
Here you go.
2022 | Subject A | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
2022 | School | 1 | 4 | 5 | 8 | |||||||
2022 | State | 235 | 116 | 123 | 979 | 257 | 807 | 651 | 224 | 932 | 330 | 797 |
2022 | Subject B | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
2022 | School | 10 | 3 | 6 | 4 | 1 | ||||||
2022 | State | 928 | 918 | 362 | 191 | 59 | 642 | 794 | 249 | 164 | 646 | 201 |
2022 | Subject C | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
2022 | School | 13 | 5 | 6 | 8 | 9 | ||||||
2022 | State | 113 | 822 | 72 | 787 | 378 | 917 | 880 | 494 | 303 | 134 | 259 |
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
Thank you for your response.
This is a column and line graph, i need the visual to be a column graph only. Where there is an overlap with schools and state, the "column" will be displayed a different colour. I've attached an image in my post for reference.
You are welcome. You can convert it to any visual you want. If you convert it to a Column chart then the School portion of the column will not even be visible because of the magnitude of difference with the State numbers.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |