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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rasalaprashanth
Frequent Visitor

Convert ATTR function in Tableau into POWER BI Dax

Hello All, 

I have a Requirement to convert one of the Tableau measure into POWER BI
Here is the sample data

AMD/Maintenance BreakdownOrderTotal BudgetEnd BalanceYearEndBal%
-10446,503,293.642,364,093.831%
-11204,933,167.693,572,690.022%
-12184,531,931.081,356,964.571%
-13112,299,403.3072,038.660%
-14247,470,847.52366,903.260%
-15240,322,600.035,271,320.472%
-16172,902,845.9911,137,559.926%
-17123,905,346.462,694,211.072%
-18150,437,488.482,426,004.902%
-19323,886,636.9986,004.210%
Equipment10106,192,470.6710,458,573.1510%
General1068,978,615.4513,102,609.6919%
Reserves1027,723,063.6427,723,063.64100%

Calculation for YearEndBal% = SUM(End Balance)/SUM([Total Budget]) ( replicated in POWER BI )


Now my requirement is to replicate the below measure from Tableau to POWER 


YearEndBalnceASP%= CASE ATTR([AMD/Maintenance Breakdown]) WHEN "Reserves" THEN NULL
WHEN "Equipment" THEN NULL
ELSE SUM([Year End Balance (w.Approved Spend Plan)])/SUM([Total Budget])
END

AMD/Maintenance BreakdownOrderTotal BudgetEnd BalanceYearEndBalnceASP%
-10446,503,293.642,364,093.831%
-11204,933,167.693,572,690.022%
-12184,531,931.081,356,964.571%
-13112,299,403.3072,038.660%
-14247,470,847.52366,903.260%
-15240,322,600.035,271,320.472%
-16172,902,845.9911,137,559.926%
-17123,905,346.462,694,211.072%
-18150,437,488.482,426,004.902%
-19323,886,636.9986,004.210%
Equipment10106,192,470.6710,458,573.15 
General1068,978,615.4513,102,609.6919%
Reserves1027,723,063.6427,723,063.64 
1 REPLY 1
amitchandak
Super User
Super User

@rasalaprashanth , refer if this can help

Tableau Vs Power BI- Chapter 21: Tableau ATTR: https://www.youtube.com/watch?v=6mXMPX7S8oU&list=PLPaNVDMhUXGYzjFASXjdY7GNoFxvlkR54&index=21

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.