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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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