Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Tableau to Power BI function

Hi Team,

 

Please help me in converting below formula from Tableau to PowerBI

IF avg(INT([Fiscper])) <avg( INT([Current Fiscper]) )

THEN sum([Act Inv])

ELSE RUNNING_SUM(SUM([Inventory National]))

END

2 REPLIES 2
nvprasad
Solution Sage
Solution Sage

Hi Raks,

 

For calculating running total based on date you need to create calander table separately and create relationship. 

The final measure looks like below.

 

IF ( avg(INT([Fiscper])) <avg( INT([Current Fiscper]) ),

sum([Act Inv]),

CALCULATE(SUM([Inventory National]), Filter(all(Table[Date]),Table[date] <= Max(Table[date]))

 

Appreciate a Kudos! ‌‌
If this helps and resolves the issue, please mark it as a Solution! ‌‌

Regards,
N V Durga Prasad

 

 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.
Anonymous
Not applicable

@nvprasad ,

I dont have any date table or any relationship

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.