Forum Discussion
Anonymous
7 years agoNot applicable
Want to develop a logic inside Power BI Desktop
Hi All, Trying to achieve same condition in Power BI,Please Help me: if(Calendar_Week_Relative = 0, sum({$<$(vSetChart), Stocking_Order_Type={'Outbound'}, Calendar_Week_Relative = {'<=0'}>} To...
- 7 years ago
Anonymous,
Check measure below and take a look at this article.
Measure 2 = VAR w = SELECTEDVALUE ( Table1[week_relative] ) RETURN IF ( NOT ( ISBLANK ( w ) ) && w = 0, CALCULATE ( [Measure], Table1[week_relative] <= 0 ), [Measure] )
v-chuncz-msft
Community Support
7 years agoAnonymous,
Check measure below and take a look at this article.
Measure 2 =
VAR w =
SELECTEDVALUE ( Table1[week_relative] )
RETURN
IF (
NOT ( ISBLANK ( w ) )
&& w = 0,
CALCULATE ( [Measure], Table1[week_relative] <= 0 ),
[Measure]
)
Anonymous
7 years agoNot applicable
Sam,
It works fine, thnaks muuch for the help!!