Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm trying to create regions from a group of cities - for example, the Dallas-Fort Worth region is comprised of ~200 cities. What is the best approach to accomplish?
Thank you so much!
~AGS
Solved! Go to Solution.
You could bring in a table with city and state columns and merge that into your data. Or you could make a Groups column yourself.
Use grouping and binning in Power BI Desktop - Power BI | Microsoft Docs
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @AaronGlenn10 ,
If you already have a group column, you could use ALLEXCEPT() function to get the average for each group.
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
For example:
average = calculate(average('table'[value]),allexcept('table'[group]))
Best Regards,
Jay
Hi @AaronGlenn10 ,
If you already have a group column, you could use ALLEXCEPT() function to get the average for each group.
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
For example:
average = calculate(average('table'[value]),allexcept('table'[group]))
Best Regards,
Jay
You could bring in a table with city and state columns and merge that into your data. Or you could make a Groups column yourself.
Use grouping and binning in Power BI Desktop - Power BI | Microsoft Docs
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I've created a group but it doesn't work when I try to use as a visualization filter.
what will your group be based on? State? county?
Proud to be a Super User!
I'm only focused on one state - Texas. The regions [groups] will be based on cities. Need to create four regions - DFW, Austin, San Antonio, and Houston. The DFW region [group], for example, will have 200 cities.
Does that help?
as per @mahoneypat I would go with the grouing option.
Proud to be a Super User!
How would I calculate an average across this group:
Same Store TTM Delta % for ABILENE & ACTON & ADKINS & ALAMO & ALAMO HEIGHTS & ALBA =
CALCULATE(
[Same Store TTM Delta %],
'TABC'[location_city (groups) 2]
IN { "ABILENE & ACTON & ADKINS & ALAMO & ALAMO HEIGHTS & ALBA" }
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
75 | |
54 | |
37 | |
31 |
User | Count |
---|---|
99 | |
56 | |
50 | |
43 | |
40 |