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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors