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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
afleiderman1
Helper I
Helper I

How to edit a measure to get the difference between two columns when one column value is blank?

I got a quick question I got the following data

My rows are customer name

my column are weeks

my measure is sum of sales

and another measure from previous week sales 

 

                            Week 1                                                    Week 2                                                                          Week 3       

                       Previous    Week  diff           Previous        week                      diff                   PreviousWeek      Week          diff

 

James              blank           100          100                100            50                -50                       50                    60                  10

 

 

Fernando

 

 

Dresta

 

 

 

 

 

diff=thisweek-previous week

 

Since you see on the first week I have blank because I do not know what that value is because I have not brough it into the data set. Is there anyway to make my week difference value blank for the first week. 

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @afleiderman1 ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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