Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
27 | |
12 | |
12 | |
11 | |
9 |
User | Count |
---|---|
53 | |
28 | |
17 | |
14 | |
13 |