Forum Discussion
syasmin25
6 years agoHelper V
IF (DAX)
Hello, I am very much new to DAX calculations and was wondering if you guys could help me out with this. I am attaching an example of what I am trying to replicate in Power BI here. In the attach...
- Anonymous6 years ago
Hi syasmin25,
You can create one measure as below:
salaryR = var a=max('Table_2'[ID])var b=CALCULATE(max('Table_1'[Quantity]),'Table_1'[ID]=a)return if([Quantity_Sold]>b,"Yes","No")Best Regards
Rena
amitchandak
6 years agoSuper User
Assumed first table as price second as estimated
Create a new column in price
t_estimated1 =
var _Eprice =minx(filter(estimated,price[id]=estimated[id]),estimated[estimated sales price])
return
if(price[price sold] < _Eprice,price[price sold],_Eprice)
Change minx to maxx or < to > as per need