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

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

Reply
RafaelAguirre02
Frequent Visitor

Calculate at row level comparing weekly.

I need to compare weekly sale values for three categories of items. What i cant do is compare one week vs previous week only for the categories that have values. here is an example.

 April
 1234
red24447065
blue3359 90
yellow 62  



here i have 4 week sale values for three type of categories. I want to calculate the difference between the sum of sales of week 2 and week 1 but only for categories with values. In this case, red and blue have values in both weeks so the calculate must do the following (44+59)-(24+33) and disregard yellow for week 2 because there is no value for it in week 1.

Is this possible to achieve?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

It is possible but it will require dimension tables because of the single 70 value - that makes it impossible to distinguish between cells and row totals.

 

lbendlin_0-1714527633126.png

see attached

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

It is possible but it will require dimension tables because of the single 70 value - that makes it impossible to distinguish between cells and row totals.

 

lbendlin_0-1714527633126.png

see attached

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.