Forum Discussion
Dax Measure
- 4 years ago
There, @ronaldbalza2023
It looks like you have the solution in another thread you posted.
IF revenue > target in Q1
THEN Revenue Q2 = Revenue
ELSE revenue < target in Q1
THEN Revenue Q2 = Revenue minus Target
Assuming you have only selected 1 year:
Projected revenue =
VAR _SelectedQuarter = SELECTEDVALUE(DimDate[Quarter])
RETURN
IF( [Revenue] > [Target] , [Revenue], [Revenue] - [Target] )
if this question has been resolved consider marking this thread as answered due to thread duplication
https://community.powerbi.com/t5/Desktop/DAX-Measure/m-p/2331876
Best regards
Community Support Team _ Zeon ZhengIf this post helps, consider Accepting it as the solution to help other members find it more quickly.
There, @ronaldbalza2023
It looks like you have the solution in another thread you posted.
IF revenue > target in Q1
THEN Revenue Q2 = Revenue
ELSE revenue < target in Q1
THEN Revenue Q2 = Revenue minus Target
Assuming you have only selected 1 year:
Projected revenue =
VAR _SelectedQuarter = SELECTEDVALUE(DimDate[Quarter])
RETURN
IF( [Revenue] > [Target] , [Revenue], [Revenue] - [Target] )
if this question has been resolved consider marking this thread as answered due to thread duplication
https://community.powerbi.com/t5/Desktop/DAX-Measure/m-p/2331876
Best regards
Community Support Team _ Zeon Zheng
If this post helps, consider Accepting it as the solution to help other members find it more quickly.