Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

same table, several queries

$
0
0

Coming at this from a database design perspective.  I am accustomed to having the table as the fundamental record set, and then make a series of queries each with a descriptive name....and they all co-exist.

 

In Power BI I with a table, Addresses, with 1000+ records and about 6 fields 

 

I made a query to create a StateCount field so now Query 1 there are 50 records with 2 fields, State and StateCount field - so far so good - this is used to create a Map visual of address per state.

 

Now I want to make another query of the table, Addresses, for Property Type count - same idea - 2 fields, State and PropertyTypeCount.  There are 3 property type so assuming all 3 in each state this query is going to have 150 records....

 

My question is: where is the fundamental Addresses table now?  When I look at it all I see is the first query of 2 columns.  Does one need to dupe the fundamental table repeatedly to create a starting point for each query?  Have relooked thru the guided learning and am not seeing this high level approach discussed so thought I would ask advice. 

 

Possibly I am just not understanding the user interface but if one wants to make say 5 different queries off the same table how does one approach that efficiently?


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>