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.
Hello , Below is a calcualted field from Tableau: -
(
(IF [End of Month] >= MAX([Campaign End Date])
THEN MAX([Campaign End Date])
ELSE[End of Month]
END)
-
MIN([Campaign Start Date])
)
/
(MAX([Campaign End Date])-MIN([Campaign Start Date]))
Is there any way i can create the same logic in Power BI ?
Solved! Go to Solution.
Hi @UditJ ,
Try formula like below:
Time Pacing =
DIVIDE (
IF ( [EOM] >= MAX ( [Campaign End Date] ), MAX ( [Campaign End Date] ), [EOM] ),
MIN ( [Campaign Start Date] ),
INT ( MAX ( [Campaign End Date] ) - MIN ( [Campaign Start Date] ) )
)
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @UditJ ,
Try formula like below:
Time Pacing =
DIVIDE (
IF ( [EOM] >= MAX ( [Campaign End Date] ), MAX ( [Campaign End Date] ), [EOM] ),
MIN ( [Campaign Start Date] ),
INT ( MAX ( [Campaign End Date] ) - MIN ( [Campaign Start Date] ) )
)
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@UditJ , end of month also need to be a measure in case of meausre
Divide(
IF( [End of Month] >= MAX([Campaign End Date])
, MAX([Campaign End Date])
,[End of Month]
END)
-
MIN([Campaign Start Date])
,
int(MAX([Campaign End Date])-MIN([Campaign Start Date])) )
end of month can be
eomonth(today(), 0)
or
eomonth(MAX([Campaign End Date]),0)
Hello AMit , I am gettng synatx issue. Please find the below image: -
Dont know whats going wrong here. Any suggestions ?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |