Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Folks,
I have a table like below which I import from mysql database. My goal is compare each of the metrics for a given model+submodel combination.
May be a clustered bar grap where first column will show metric1 of abc model 123 submodel beside metric 2 of def model 456 submodel --separate clustered graphs for all metrics in the same graph -- How do I achieve this. Pretty much compare rows for all the metrics and somehow create a legend to mention which color refers to which model and submodel combination. Thanks.
ID | Model | Sub Model | metric1 | metric2 | metric3 | metric4 |
1 | abc | 123 | 110.0 | 100.0 | 300.0 | 120 |
2 | def | 456 | 220.1 | 300.1 | 400.1 | 500.5 |
3 | ghe | 567 | ||||
4 |
Solved! Go to Solution.
Hello @Anonymous
Below are two variants. 1st is what you showed as per your last post and 2nd is as per your 2nd post. You can choose any one. PowerBI file is attached.
Feel free to accept as solution so that others find it easy to get solution.
Thanks,
Hi
I believe you need a bridge table to resolve this. You can create a table (let's call it bridgetable) with unique IDs. Create a relationship with bridgetable and table with all metric values. This relationship will be 1 to many.
Thanks
Hi @Anonymous
You have to drill down to see model and sub model details.
Feel free to Accept it as a solution if this is what you expected.
Thanks
hi,
Here is what I am looking for.
Hi,
Thanks for the solution but it is displaying all the metrics for a given model. What I am trying to get is multiple clustered column for each metric side by side. As you can see below --for a given model is showing all the metrics clustered. Lets say we have 4 models --then for each metric I would like to display 4 clustered columns , one each for one model. I was able to do it for onbe metric by having the id as legend and the metrics as values . But I could not add multiple values. I am also actually ok with the just the id being the legend since I am generating the id as "model_submodel" . TIA.
Hi @Anonymous
Can you please show what you are expecting in graphical way? You can use paint or powerpoint or any other software.
Thanks
This is what I am looking for .
Hello @Anonymous
Below are two variants. 1st is what you showed as per your last post and 2nd is as per your 2nd post. You can choose any one. PowerBI file is attached.
Feel free to accept as solution so that others find it easy to get solution.
Thanks,
Thank you very much , but since my id was declared as a primary key in the DB I am getting the following error.
Is there anyway to overcome this ? else I have to go back and change the schema in the database and very the PK constraint.
Hi
I believe you need a bridge table to resolve this. You can create a table (let's call it bridgetable) with unique IDs. Create a relationship with bridgetable and table with all metric values. This relationship will be 1 to many.
Thanks
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
71 | |
55 | |
43 | |
28 | |
22 |