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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Tanmay20
New Member

Power BI Calculation mechanism in Power BI Dashboard

We wanted to get the table in power BI Dashboard by calculating formulas like minus, percentage, ratio etc. 

 

Table format 

Total Debtors 100 

Overdue 20

Not overdue 80 (100-20)

Sales 20

Debtor Turnover ratio 20 (20/100*100) 

So it is required all formulas come in power bi dashboard as the same is not in the backend data.

Please resolve at the earliest

 

 

 

1 ACCEPTED SOLUTION
v-heq-msft
Community Support
Community Support

Hi @Tanmay20 ,
Based on your description, there are two 20s in your data and it is impossible to determine which one was used for the final result. You can use selectedvalue to select the data in the table. Here is a simple example

vheqmsft_0-1723684690476.png

Create mesures

Not overdue = SELECTEDVALUE('Table'[Total Debtors]) - SELECTEDVALUE('Table'[Overdue])
Debtor Turnover ratio = SELECTEDVALUE('Table'[Overdue])/SELECTEDVALUE('Table'[Total Debtors])*SELECTEDVALUE('Table'[Total Debtors])

Final output

vheqmsft_1-1723684731449.png

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Write these measures

TD = sum(Debtors[Value])

OD = sum(overdue[Value])

S = sum(Sales[Value])

Debtor turnover = divide([S],[TD])*[OD]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-heq-msft
Community Support
Community Support

Hi @Tanmay20 ,
Based on your description, there are two 20s in your data and it is impossible to determine which one was used for the final result. You can use selectedvalue to select the data in the table. Here is a simple example

vheqmsft_0-1723684690476.png

Create mesures

Not overdue = SELECTEDVALUE('Table'[Total Debtors]) - SELECTEDVALUE('Table'[Overdue])
Debtor Turnover ratio = SELECTEDVALUE('Table'[Overdue])/SELECTEDVALUE('Table'[Total Debtors])*SELECTEDVALUE('Table'[Total Debtors])

Final output

vheqmsft_1-1723684731449.png

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Helpful resources

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.