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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.