Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ATYB9
New Member

Dynamic slicer filtering - splitting single column

Hello!

 

I have made a similar question to the below, please see on my profile: "Data slicing - multiple years" 

 

The difference is now I only have one table, sample data as follows 

 

"Book to Tax" table:

 

IDPeriod end yearEntity NameEntity IDCategoryTypeGross AmountExplanation
12022Entity AAlphaPBTPermanent234234Example text 1
12022Entity AAlphaAccountancyTemporary6786Example text 2
12022Entity AAlphaAdminPermanent235490Example text 3
12022Entity AAlphaCapital allowancesTemporary400Example text 4
22021Entity AAlphaPBTPermanent500Example text 5
22021Entity AAlphaPBTTemporary124Example text 55
22021Entity AAlphaAccountancyTemporary34534Example text 6
22021Entity AAlphaAdminPermanent345Example text 7
32020Entity AAlphaAccountancyTemporary345435Example text 8
32020Entity AAlphaAdminPermanent678Example text 9
32020Entity AAlphaCapital allowancesTemporary234Example text 10
32020Entity AAlphaPBTPermanent9032Example text 11
42022Entity BBetaPBTPermanent538738.2Example text 1
42022Entity BBetaAccountancyTemporary15607.8Example text 2
42022Entity BBetaAdminPermanent541627Example text 3
42022Entity BBetaCapital allowancesTemporary920Example text 4
52021Entity BBetaPBTPermanent1150Example text 5
52021Entity BBetaPBTTemporary285.2Example text 55
52021Entity BBetaAccountancyTemporary79428.2Example text 6
52021Entity BBetaAdminPermanent793.5Example text 7
62020Entity BBetaAccountancyTemporary794500.5Example text 8
62020Entity BBetaAdminPermanent1559.4Example text 9
62020Entity BBetaCapital allowancesTemporary538.2Example text 10
62020Entity BBetaPBTPermanent20773.6Example text 11

 

Note I had to add the Entity Name, Entity ID, Period End Year columns via LOOKUPVALUE at the DAX level from another table using ID column.

 

I would like to create a table visual with these columns:

CategoryTypeGross amount (selected year)Gross amount (prior year to selected year)Difference between selected and prior year% change

 

The visual should show the sum of gross amount by category and type. However the user should be able to select which Period End Year data is shown in the third and fourth columns in dynamic way.

 

For example they could select the Period End Year slicer to be "2022" so the "Gross amount (selected year)" would only show the data for 2022 in the third column, and in fourth column ("Gross amount (prior year to selected year)") only show 2021 data.

 

This could vary so the user may select 2021 in the slicer and so the prior year data is 2020.

 

I will also need to calculate the difference between the sum of the gross amounts by category and type for each row. I assume this will need to be a measure to be dynamic and change as the user changes the year selected in slicer. Finally, the "% change" column should also be calculated which is equal to "Difference between selected and prior year" / "Gross amount (prior year to selected year)"

 

Please let me know if any clarifications required.

 

Many thanks in advance!

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.