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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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