The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I am looking to recreate an existing Crystal Report Formula in DAX as a measure. Please could someone advise. I will be using a YEARMONTH Slicer and a seprate dates table containing the usual year, month etc etc
if DatePart('yyyy',{urvPMContractAnalysisDD_WithPCOEstCost.Mth}) < DatePart('yyyy',{?ThroughMth}) then
if DatePart('yyyy',{urvPMContractAnalysisDD_WithPCOEstCost.ProjMth}) < DatePart('yyyy',{?ThroughMth}) then
{urvPMContractAnalysisDD_WithPCOEstCost.ProjCost}
else
{urvPMContractAnalysisDD_WithPCOEstCost.CurrEstCost}
else
0
Solved! Go to Solution.
@AlexD123 , use correct column and table name
if ( year(urvPMContractAnalysisDD_WithPCOEstCost[Date]) < year([ThroughMth]) ,
if ( month(urvPMContractAnalysisDD_WithPCOEstCost[Date]) < month([ThroughMth]) ,
[rvPMContractAnalysisDD_WithPCOEstCost[ProjCost] , urvPMContractAnalysisDD_WithPCOEstCost[CurrEstCost]),0)
Hi @AlexD123 ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.
Best Regards,
Stephen Tao
@AlexD123 , use correct column and table name
if ( year(urvPMContractAnalysisDD_WithPCOEstCost[Date]) < year([ThroughMth]) ,
if ( month(urvPMContractAnalysisDD_WithPCOEstCost[Date]) < month([ThroughMth]) ,
[rvPMContractAnalysisDD_WithPCOEstCost[ProjCost] , urvPMContractAnalysisDD_WithPCOEstCost[CurrEstCost]),0)
User | Count |
---|---|
56 | |
54 | |
53 | |
48 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |