Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Guys,
I have an 'AppDate' table that looks like below:
AppDate | ||
CostCenter | AppId | SubDate |
11 | 1 | 1/1/2019 |
22 | 2 | 1/5/2019 |
33 | null | null |
44 | 3 | 2/5/2019 |
55 | 4 | 2/27/2019 |
66 | 6 | 5/3/2019 |
77 | 10 | 5/5/2019 |
88 | 18 | 5/23/2019 |
There is another table that has all detailed info of the Cost centers ( they may or may not be present in the above AppDate table):
CostCenterInfo | ||
CostCenter | Name | Home State |
11 | AA | California |
22 | BB | Florida |
33 | CC | Texas |
44 | DD | Florida |
55 | EE | California |
66 | KK | Arizona |
77 | YY | California |
88 | NN | Arizona |
99 | GG | Texas |
100 | TT | Texas |
Also, there could be a few rows with cost centers in the AppDate table that are not have any entry present in the 'CostCenterInfo' table.
Using a date filter, I need to get the list of all Cost centers that DO NOT have any application associated to them.
I need two things:
1. KPI : Count of Cost Centers with no Apps
2. Table of all Cost Centers that have no Apps
In the above case, if the end user selects date range of 'Feb 2019',
1. Count of Cost Centers with No Apps will be '8'. (Since there are only two brancehs in Feb'19 that returned apps in this month and there are a total of 10 Cost Centers in the second table ( CostCenterInfo table).
2. The table should show all info for above 8 Cost centers (resulting rows from the previous metric) that did not return any apps in the selected date range ( here, Feb'2019).
It seems easier in SQL but, I am unable to figure out how to do it in Power Bi.
Please help!
@Anonymous ,
I need two things:
1. KPI : Count of Cost Centers with no Apps
2. Table of all Branches that have no Apps
In the above case, if the end user selects date range of 'Feb 2019',
1. Count of Cost Centers with No Apps will be '8'. (Since there are only two brancehs in Feb'19 that returned apps in this month and there are a total of 10 branches inthe second table ( CostCenterInfo table).
2. The table should all info for the above 8 branches that did not return any apps in that month.
It seems easy in SQL but, I am unable to figure out how to do it in Power Bi.
Please help!
Could you please clarify more details about "branched" and share the expected result?
Regards,
Jimmy Tao
Hi @v-yuta-msft
Sorry for confusing the 'Cost centers' with 'branches'.
I have updated the question so hopefully the udpated question would be more clear.
I am looking for two KPIs here:
Based on selected months in date filter,
1. Count of Cost Centers that did not return any apps
2. Show all data of those cost centers (fro mthe CostCenterInfo table) selected in the previous query.
Let me know if you have any other questions.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |