Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am new to Power BI (just started yesteday) andd need some help on how to add multiple kpi histories to the same graph as the way I am currently doing it will only allow one.
I did look a one video but they seemd to have more options - I am using the free verison.
I am using the kpimainid, Date and Total columns from kpihistory table and need to be able to reference multiple kpimainids for my graphs.
kpimainid | Name | Total | Date |
3333 | PBL - KPI 00010 | 609 | 09-Jul-22 |
3333 | PBL - KPI 00010 | 609 | 10-Jul-22 |
3333 | PBL - KPI 00010 | 609 | 11-Jul-22 |
3333 | PBL - KPI 00010 | 593 | 12-Jul-22 |
3333 | PBL - KPI 00010 | 592 | 13-Jul-22 |
3333 | PBL - KPI 00010 | 584 | 14-Jul-22 |
3334 | PBL - KPI 00034 | 569 | 25-Jun-22 |
3334 | PBL - KPI 00034 | 569 | 25-Jun-22 |
3334 | PBL - KPI 00034 | 570 | 26-Jun-22 |
3334 | PBL - KPI 00034 | 570 | 27-Jun-22 |
3334 | PBL - KPI 00034 | 581 | 28-Jun-22 |
3334 | PBL - KPI 00034 | 578 | 29-Jun-22 |
3334 | PBL - KPI 00034 | 574 | 30-Jun-22 |
I have also include how I have set up my line graph.
Solved! Go to Solution.
Hi @stefgiorgi
Glad it works. Can you please giv kudos and mark it as a solution?
Thanks
Hari
I have imported an excel sheet with the ID , Name and Description.
How do I join the kpimainid from kpihistory to ID in the excell sheet?
I should also point out that I am using a direct connect to my sql database.
PS. Thank you for all your help so far.
Hi @stefgiorgi
If you expecting mulitiple lines for example for each "kpimainid" you need a line then drag and drop the kpimainid column into legend section of the visual.
Thanks
Hari
Thankyou @Hariharan_R that has worked.
I have one other question as the kpimainid is just a number i.e. it doesnt have the description of what it represents, can this be renamed?
Hi @stefgiorgi
Yes. You can create one more column with whatever name you want to give for each ID and use that column in the legend. You also can define the ID and name in excel and get the excel inside the POwer BI desktop and join with ID column and use that name column.
Thanks
Hari
IAfter what you said I realise I already had the kpimain table as a direct connection so have made the join with that. All now working as I need.
Once again thatks for all your help.
Hi @stefgiorgi
Glad it works. Can you please giv kudos and mark it as a solution?
Thanks
Hari
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |