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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Column header as slicer

I'm sure this is elementary but I'm stumped. My data is set up with headers like this:

Store Nbr, City, State Sales, LW Sales, LW YAGO, L4W Sales, L4W YAGO, etc.

but need to vizualize it in 3 buckets:

Last Week, Last 4 Weeks and Last 13 Weeks. The idea is to have that slicer and then show the percent change for dollars and units without having to show the whole table. Can someone point me in the right direction?

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Do you want something like this?
e2.PNG

//column
LW/L4W = (P2[ L4W Sales] - P2[ LW Sales]) / P2[ LW Sales] 

Here is my original data table:

e3.PNG

 

If not, maybe you can tell me that what do you want to calculate ?

And which column do you want to filter in a slicer ?
And where is your ‘L13W Sales’ ?

And What does ‘LW YAGO’ mean?

 

Best regards,

Lionel Chen

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Should have made this more clear. The goal is to vizualize LW, L4W and L13W sales vs the same period last year. I can calculate the percentage change but am having no luck with setting up a slicer with LW, L4W and L13W. The data is set up with columns LW, LW Year Ago, L4W, L4W Year Ago, L13W and L13W Year Ago. 

Hi @Anonymous ,

"I can calculate the percentage change but am having no luck with setting up a slicer with LW, L4W and L13W. "
Do you mean that you want to use a slicer with multiple columns ? If yes, you can take a look at this article:

https://www.sqlbi.com/articles/creating-a-slicer-that-filters-multiple-columns-in-power-bi/

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Excellent I see how this could work but the Brand and Item Columns are text and the sales are numbers. When I combine them it doesn't seem to work. what am I missing?

Anonymous
Not applicable

Here is a sample of my data:

Store NbrStore CityStore State/ProvinceBrandSegmentPOS Sales Last 01 WkPOS Sales Last 01 Wk YAGOPOS Qty Last 01 WkPOS Qty Last 01 Wk YAGOPOS Sales Last 04 WksPOS Sales Last 04 Wks YAGOPOS Qty Last 04 WksPOS Qty Last 04 Wks YAGOPOS Sales Last 13 WksPOS Sales Last 13 Wks YAGOPOS Qty Last 13 WksPOS Qty Last 13 Wks YAGO
   AwAEROSOLS         ($2) (2)
   AwBATTERY CONTINUOUS$154$2282538$667$735109120$2,059$2,478332419
   AwESSENTIAL MIST$256$2234131$857$69313595$2,416$2,100373304
   AwOILS$865$1,058149178$3,541$3,660605633$12,095$11,1242,1021,981
   Aw VoAUTOMATIC TOILET BOWL CLEANERS$12$60210$197$1013317$537$3529059
   BoSPECIALTY$3$913$12$36412$77$1042635
   CnWATER SOFTENER $5 1$21$1643$85$48169
   DnMOUSE$93$841314$791$37610252$1,446$1,214176181
   EoAPPLIANCE$122$1183130$343$40287102$1,111$1,076282273
   FhADDITIVE$206$824014$566$29411252$1,751$1,154351198
   FhLEGACY    $16 3 $88 16 
   FhUNIDOSE$444$4886964$1,432$1,609222231$4,360$5,509685814
   LsALL PURPOSE SPRAYS$151$1745063$631$554218205$2,076$1,867706687
   LsAUTOMATIC TOILET BOWL CLEANERS$80$772727$355$346116128$1,335$1,128446411
   LsBATHROOM CLEANERS$89$683023$392$306132103$1,040$1,143350385
   LsDILUTABLES CLEANERS$93$742824$419$392128126$1,423$1,135426368

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors