Power BI changes in status between two periods

Tashat

Board Regular
Joined
Jan 12, 2005
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Hi all

I'm hoping someone can help me. I'm trying to create a query in Power Bi with visualisations etc. I have an organisation list, which my colleagues update regularly to add new organisations and also update the organisations' relationship type. Each month I download a copy, to capture what each organisation's relationship type was at a given month and I have pasted this into an excel spreadsheet as per the below dummy data (example 1.). I want to use this data as the source in PowerBI.

I want my query to allow me to select two given months and compare the changes in relationship types and show me the number and percentage of organisations to have improved, declined or remained static in terms of their relationship type between those two given periods (example 2).

I also want to be able to show that the number and percentage of organisations in a given month to be at each relationship type. e.g. in May there were 2 organisations out of 9 (22%) labelled as "neutral" and in June this changed to 3 (33%). In May there were 33% of orgs labelled as "Critic" and in July there was 30% - bearing in mind there was also an additional organisation added. Similar to (example 3)

I'm at a total loss over how to achieve this in Power BI. Can anyone help me please?

1. Raw data:
Org IDOrganisation NameRelationship typeScore (calculated based on relationship type)Date
1CostcoNeutral231/05/2023
2WH Smith031/05/2023
3StarbucksCritic131/05/2023
4WilkosInterested331/05/2023
5Pizza Hut031/05/2023
6McDonald's031/05/2023
7KFCCritic131/05/2023
8BootsNeutral231/05/2023
9ArgosCritic131/05/2023
1CostcoNeutral230/06/2023
2WH SmithCritic130/06/2023
3StarbucksCritic130/06/2023
4WilkosInterested330/06/2023
5Pizza HutNeutral230/06/2023
6McDonald'sCritic130/06/2023
7KFCCritic130/06/2023
8BootsNeutral230/06/2023
9ArgosCritic130/06/2023
1CostcoCritic130/07/2023
2WH SmithCritic130/07/2023
3StarbucksInterested330/07/2023
4WilkosNeutral230/07/2023
5Pizza HutNeutral230/07/2023
6McDonald'sNeutral230/07/2023
7KFCNeutral230/07/2023
8BootsInterested330/07/2023
9ArgosNeutral230/07/2023
10River Island (new org)Critic130/07/2023
1CostcoNeutral231/08/2023
2WH SmithNeutral231/08/2023
3StarbucksPartner531/08/2023
4WilkosInterested331/08/2023
5Pizza HutInterested331/08/2023
6McDonald'sEngaged431/08/2023
7KFCNeutral231/08/2023
8BootsNeutral231/08/2023
9ArgosInterested331/08/2023
10River Island (new org)Neutral231/08/2023



2. Example of showing improvement between July and Aug - I achieved it in Excel, but not in PowerBI - also Excel won't allow me to choose the two periods I want to compare. I had to do formulas to calculate it based the two dates I had chosen.
Comparing July and August
Row LabelsNumber of Organisations Percentage of Organisations
Declined110%
Improved880%
Static110%
Grand Total10100%



3. Example of the tables showing percentages of organisations at each relationship level
May9 orgs
PartnerEngagedInterestedNeutralCriticNo data
0%0%11%22%33%33%
June9 orgs
PartnerEngagedInterestedNeutralCriticNo data
0%0%11%33%56%0%
July10 Orgs
PartnerEngagedInterestedNeutralCriticNo data
0%0%20%50%30%0%
August10 Orgs
PartnerEngagedInterestedNeutralCriticNo data
10%10%30%50%0%0%
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top