Forum Discussion

deanbland's avatar
deanbland
Helper III
5 years ago
Solved

Compare Last Month To Current Month

Hi,    I am wanting to compare this month's entire dataset to last months entire dataset to see if anything has changed. Is there a way to create a calculated column in the current months report th...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    5 years ago

    Hi deanbland ,

     

    I don't suggest to do comparison in power bi since you have too many columns contains in one table. You need create a calculation column to show 0, 1 for each columns in the original column. If you really need to do it , you can create index column for both tables. Here is a sample for one difference column in your table:

     

    differenceforot = IF('Current Month'[Opportunity Type] = LOOKUPVALUE('Previous Month'[Opportunity Type],'Previous Month'[Index],'Current Month'[Index]),0,1) 

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai