Pivot table

Redda_joppe

New Member
Joined
May 12, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi
I have a set of data where I like to collect all data like in a pivot table but I like to choose as follows
Country
City
The city will be related on country. So only cities related to country are visible in the drop down menu

I have tried with power pivot, but I don’t quite get it to work


Br
Rune
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How are your tables inside the data model defined?
You should have a table with cities and some related fact data. And another (lookup) table with cities and their country.
If you have the default settings (I think) in your slicers, you can have a slicer of country and one on city (take the fields of the second table). The city one should respond to the selection of the first one.
Do note this can make calculations heavy and kill the responsiveness of your solution.
 
Upvote 0
How are your tables inside the data model defined?
You should have a table with cities and some related fact data. And another (lookup) table with cities and their country.
If you have the default settings (I think) in your slicers, you can have a slicer of country and one on city (take the fields of the second table). The city one should respond to the selection of the first one.
Do note this can make calculations heavy and kill the responsiveness of your solution.
I trird to simplified this a bit to much. i av a project with sub projects (these changes from project to project) so i like to present date on a sub project level. all sub project or just one
like show in the attachement
maybe lookup is better than pivot ?
 

Attachments

  • data.jpg
    data.jpg
    161.3 KB · Views: 10
Upvote 0
It's doable with slicers, as I suggested. Made a quick example with month and week numbers of dates.
It depends a bit on the number of projects you would have.

1712074439840.png


1712074498286.png


Alternative is possible with some formulas.
1712075142653.png


Sorry for pasting pictures, I'm without XL2BB add-on. I can't install it at work.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
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