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 August 31st. Request your voucher.
Hi Team,
Greetings !!
Below is my statement which i am using in a different BI tool , I have create the same formula here , can some one help me here .
IF [Fcst]="CQ" and
([SS no]="07" or [SS no]="08")
and [Week Num]= {MAX(IF [Fcst]='CQ' THEN [Week Num] ELSE null END)}
then [Rev$M] ELSE 0 END
Thanks & Regards
Shiv Kumar
Solved! Go to Solution.
@Anonymous ,
I tried to replicate your formula in Power BI. Please check and let me know if it helps or not.
If statement = IF(and(AND([Fcst]="CQ",OR([SS no]="07",[SS no]="08")),[Week Num]= MAX(IF( [Fcst]='CQ',[Week Num],BLANK()))),[Rev$M],0)
Thanks,
Arul
Hi @Anonymous
I don't understand the MAX section in your original formula {MAX(IF [Fcst]='CQ' THEN [Week Num] ELSE null END)}. Can you explain it with natural language or some sample data to help us understand the expected result? The usage of MAX function in Power BI is different from this one, so there is a gap for understanding here.
Best Regards,
Community Support Team _ Jing
@Anonymous ,
I tried to replicate your formula in Power BI. Please check and let me know if it helps or not.
If statement = IF(and(AND([Fcst]="CQ",OR([SS no]="07",[SS no]="08")),[Week Num]= MAX(IF( [Fcst]='CQ',[Week Num],BLANK()))),[Rev$M],0)
Thanks,
Arul
HI Arul @Arul ,
Thanks for replying!!
I have updated the formula a little .
Thanks & Regards
Shiv