cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kumarshourabh Resolver I
Resolver I

Extract Data from another table using another table

Hi Guys,

 

I have an 'AppDate' table that looks like below:

AppDate
CostCenterAppIdSubDate
1111/1/2019
2221/5/2019
33nullnull
4432/5/2019
5542/27/2019
6665/3/2019
77105/5/2019
88185/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
CostCenterNameHome State
11AACalifornia
22BBFlorida
33CCTexas
44DDFlorida
55EECalifornia
66KKArizona
77YYCalifornia
88NNArizona
99GGTexas
100TTTexas

 

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 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!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

Re: Extract Data from another table using another table

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Super User IV
Super User IV

Re: Extract Data from another table using another table

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

kumarshourabh Resolver I
Resolver I

Re: Extract Data from another table using another table

Thanks @Ashish_Mathur . This is really helpful..

 

Could you please help me understand the logic you used for the 'No Apps' metric.

 

Super User IV
Super User IV

Re: Extract Data from another table using another table

Hi,

I'd request you to please read up on the functions used in that formula on the MSDN site.  If you are still unclear, then post here and i will clarify your doubts.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors