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
Anonymous
Not applicable

Dataset query creating measure / calculated column of products comparison

Hi all

 

I'm new to power BI and have created basic reports on structed data sets, I'm now trying more ambitions reports that I would be created with TSQL/VBA code. 

 

I have a table of Portfolios that each hold differnet products, some of the portfolios relate to each other (Sister Portfolio) and hold the same products but have a differnt sales amount. I would like to have a report / chart that shows a user selected portfolio and it's related portfolio and the differnce  in sales volume in the same product. I would like to differnce to be on a slider for the user to show difference amounts.  Example of my data set below.

 

PortfolioSisterPortfolioProductSales Volume
BlueRedLamp1200
RedBlueLamp1300
YellowGreenLamp2150
GreenYellowLamp2180
BlueRedLamp2100

 

there are lots are thounsands of products in my real data set,  would I best to model in Power query or is there a visual I can use. 

 

I could build a visual if the data set was structued like below, user selected Blue as the portfolio

 

 BlueRedDiff
Lamp 1300200100
Lamp 210000

 

Is it possible to do the above, its the differnce column that I'm struggling with.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think offset can help in this case

 

Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , I think offset can help in this case

 

Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.