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
Hemanttripathi
Regular Visitor

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 1
amitchandak
Super User
Super User

@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

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.

Top Solution Authors