Forum Discussion

Hemanttripathi's avatar
Hemanttripathi
Regular Visitor
5 years ago

How to create condition column based on quick measure

Hello Power BI community,

 

I am struglling with one scenario where I have quick measure which subtracts two columns from two diffrent tables. Based on which i want to have one more column with result if 'quick measure (DIFF)' ='0' then its 'yes' or else if less than or greter than zero it should be false.

The relationship between both the tables are based on Sr.No = 'Many to Many' as One to One is not possible to be created.

 

Here is the example two data set:

 

 DataSet_FDBA
Sr NoFDBA
1100
21500
31500
4200

 

 DataSet_ TBA  
Sr NoTDBAQuick Measure (DIFF)Required column
19010No
215000Yes
31400100No
42000Yes

 

Can anyone guide me how can i achieve the required column.

 

I am open for suggestions to redesign in order to achieve difference column and conditional yes or No column.

 

Thank you in advance.

 

Regards,

Hemant

1 Reply

  • Hemanttripathi , Have new measure like

    if([Quick Measure] >0 ,"Yes","No")

     

    If need a column with a slicer then you need an independent table with ranges like

    -99999999 0  , No

    0.0000001 99999999 , yes

     

    and then using Sr No level and this table you need to create a measure that you can use.

    please refer to my video (Sample file link given in description)

    https://www.youtube.com/watch?v=CuczXPj0N-k