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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.