- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

DAX formula to calculate values from one specific row to the other
Hi,
I'm new to power bi especially DAX. I've a situation where i've 1main account name, sub account name and one amoun column now i want to divide one of the value from sub account name to another total of the account name group. It's easy to do in excel pivot can i get some help on how to perform the same thing in Power Bi using DAX
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @pranays2 ,
Please try this:
% of deposits from banks =
DIVIDE (
SUM ( Sheet1[Amount] ),
CALCULATE (
SUM ( Sheet1[Amount] ),
FILTER (
ALL ( Sheet1[Account Name], Sheet1[Account name Sub 1] ),
Sheet1[Account Name] = "Deposits from banks"
)
)
)
deposits from banks only
Deposits from banks =
CALCULATE (
SUM ( Sheet1[Amount] ),
FILTER (
ALL ( Sheet1[Account Name], Sheet1[Account name Sub 1] ),
Sheet1[Account Name] = "Deposits from banks"
)
)
Dane Belarmino | Microsoft MVP | Proud to be a Super User!
Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @pranays2 ,
Given the available information, here's what I've come up with:
=
DIVIDE (
[Sum of Amount],
CALCULATE (
[Sum of Amount],
FILTER (
ALL (
'Table'[Column name of the first level in the row hierarchy],
'Table'[Column name of the second level in the row hierarchy]
),
'Table'[Column name of the first level in the row hierarchy] = "Deposits from bank"
)
)
)
If this doesn't work, please provide a sample data.
Dane Belarmino | Microsoft MVP | Proud to be a Super User!
Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi danextian, Thanks for the quick response unfortunately the formula you suggested didn't work i've uploaded the sample data in pbix file please find it in the link attached https://drive.google.com/file/d/1GTchy22DAs332bsTsjy8fnU1KkoGsIgR/view?usp=sharing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @pranays2 ,
Please try this:
% of deposits from banks =
DIVIDE (
SUM ( Sheet1[Amount] ),
CALCULATE (
SUM ( Sheet1[Amount] ),
FILTER (
ALL ( Sheet1[Account Name], Sheet1[Account name Sub 1] ),
Sheet1[Account Name] = "Deposits from banks"
)
)
)
deposits from banks only
Deposits from banks =
CALCULATE (
SUM ( Sheet1[Amount] ),
FILTER (
ALL ( Sheet1[Account Name], Sheet1[Account name Sub 1] ),
Sheet1[Account Name] = "Deposits from banks"
)
)
Dane Belarmino | Microsoft MVP | Proud to be a Super User!
Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks very much danextian it's working now 🙂

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-30-2024 02:28 PM | |||
07-30-2024 10:43 AM | |||
12-19-2023 08:03 AM | |||
07-04-2024 05:17 PM | |||
02-15-2024 05:13 AM |
User | Count |
---|---|
134 | |
105 | |
87 | |
55 | |
46 |