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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
101
Regular Visitor

Dax- Calculation Help

Hello World,
I need to calculate the Average Dues.
Capture.PNG



Here, I have a Column called Clubs (It has name of all the clubs).
2nd, I have a column called Profit Center which compromises of our different source of revenue. 
3rd, I have the profit Center's Revenue Amount. 
4th, I also have a column called Members (It has list of Members's agreement Number)
I want to simply calculate Average Dues (Just for 1 profit Center). I am assuming we have to use filter for it. 

The formula to calculate Average dues = Dues Amount/Total Members .
Thank you

11 REPLIES 11
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Club NameAgreement NumberLast NameFirst NameMembership TypeProfit CenterPayment DatePayment Amount
Club Orchid2045HernandezRabBASEDues5/10/20235
Club Rose4045FernandezCarlosBASELate Fee5/10/202310
Club Orchid4971SamuelJohnBASEDues5/24/202320
Club Lily5522JimenezEliBASEProcessing Fee5/31/20235
Club Rose6522TranElizabethBASEDues5/31/202330
Club Orchid9535HobsonLexiPEAKPRAnnual Fee5/16/20235
Club Lily8535StyleHarryPEAKPRDues5/16/202310
Club Orchid9806MinorEugiePEAKPRDues5/19/20235
101
Regular Visitor

I want to create a measure, that gives me average dues for each club. The formula to calculate Average dues = Dues Amount/Total Members . Here, in the sample data, the total Memberes would be 8. 

Are you sure about that calculation?

 

lbendlin_0-1695397042378.png

 

It should count only dues agreement number not all. How do I do it?

lbendlin_0-1695398935527.png

 

How do I change Average Dues to $. Mine appeared as in decimal. 

click on the measure in the field list and then in the top menu change the formatting.

lbendlin_0-1695401116838.png

 

Thank you. I guess your formula is taking all the payment amount. It should be Average Dues= Payment Amount (Only of Dues not others) / Agreement Number (Only Dues). It's giving me incorrect average dues. 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Club NameAgreement NumberProfit CenterPayment Amount
Club Daisy1231Dues15.99
Club Lily8952Annual49.99
Club Marigold4582Processing Fee1.99
Club Orchid8962Dues15.99
Club Rose4562Annual49.99
Club Daisy7862Processing Fee1.99
Club Lily3252Dues15.99
Club Marigold4562Dues15.99
Club Orchid8232Annual49.99
Club Rose1232Processing Fee1.99
Club Daisy8342Dues15.99
Club Lily2312Dues15.99
Club Marigold4252Dues15.99


Here, I want to create a measure that calculates the Average Dues. 
For example: Here we have 7 Members that have Profit Center as Dues. 
Now, If I calculate Average Dues for Just Club Daisy. It would be Average Dues = Payment Amount (15.99 +15.99) /2 (There are 2 members in Club Daisy that has Dues). Now the Average Dues would be 31.98/2, which is $15.99. So, the Average Dues for Club Daisy is $15.99. 
In same way, I want to calculate Average dues for all the other clubs and create a matrix visualization that displays club names and their average dues. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors