cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Employee

## Compare Sell-through of 2 Stores within one Table-Visual

Hi there,

I want to compare the Sell-through of several stores with their counterparts within 1 Row of a Table visual.

I have DIM_Outles matched with  FACT_Sell-through via Oultet_ID
Now a few of the Stores have a compare Store and I added the Info within the DIM_Outlets.

the "Focus Store comparison" is what I want to create.

Sample Data: https://1drv.ms/u/s!AqT0loog1WXMjpFcbrKfGUo3WTQYkQ?e=QOtBHB

1 ACCEPTED SOLUTION
Super User

Hi @Knast
Here is a sample file with the proposed solution https://www.dropbox.com/t/KkeqN6eamKqnpUvZ

``````VS. Compare Store =
VAR CurrentSellThrough =
SUM ( 'FACT_Sell-through'[Sell-through] )
VAR CompareSellThrough =
CALCULATE (
SUM ('FACT_Sell-through'[Sell-through] ),
TREATAS ( VALUES ( Dim_Outlets[Compare_Outlet_ID] ), Dim_Outlets[Outlet_ID] )
)
RETURN
CurrentSellThrough - CompareSellThrough``````
4 REPLIES 4
Super User

Hi @Knast
Here is a sample file with the proposed solution https://www.dropbox.com/t/KkeqN6eamKqnpUvZ

``````VS. Compare Store =
VAR CurrentSellThrough =
SUM ( 'FACT_Sell-through'[Sell-through] )
VAR CompareSellThrough =
CALCULATE (
SUM ('FACT_Sell-through'[Sell-through] ),
TREATAS ( VALUES ( Dim_Outlets[Compare_Outlet_ID] ), Dim_Outlets[Outlet_ID] )
)
RETURN
CurrentSellThrough - CompareSellThrough``````
Employee

@tamerj1 worked! Thx a lot!

Solution Sage

Please supply some example data to work with. In text form, so that it's easy to copy. If you can share a file (via Dropbox or Google Drive, for instance) with such data, even better. Thanks.

Employee

i added a link with example data - https://1drv.ms/u/s!AqT0loog1WXMjpFcbrKfGUo3WTQYkQ?e=QOtBHB

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors