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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
nataliesmiy1357
Helper IV
Helper IV

Custom calculation help!

Hello!  I need a bit of help creating this dax formula for my report....

First, I am trying to make a formula for the Ideal Points for my report.  I have created measures for Rank1, Rank2, Rank3, and Rank4 points (this is a formula given to me by my company which is the number of team members * a percentage of people).  

 

I need to calculate the Ideal Points by doing this:  Rank1 * number of modules with a rank 1 for the course = rank 1 ideal points.

(so for this highlighted row... I need the Rank1 * 12 = rank 1 ideal points for WW L100 M02 Computer screens)

 

I am also wondering if I could create this table like the pivot table below.... Thanks in advance!

nataliesmiy1357_2-1646768143993.png

 

nataliesmiy1357_1-1646767956214.png

 

1 REPLY 1
AllisonKennedy
Community Champion
Community Champion

@nataliesmiy1357 

If I understand correctly you can use SWITCH to tell Power BI which rank measure to use:

 

Rank Value = 

SWITCH( [Rank],

1, [Rank1]

,2, [Rank2]

, 3, [Rank3]

,4, [Rank4]

)

 

Then Multiply that by the points/modules to get the ideal points. Hope that makes sense?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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