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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
dombarg
Helper II
Helper II

how to divide specific rows to sum of another specific rows

hello.

I need to divide specific rows (with specfic filter) to sum of another specific rows.indeed,following picture explains my problem better than me.highlighted text in 'measure' column shoulde be divided to highlighted numbers in the balance filed.for this,i've writen measure called 'to current asset'.but it returns wrong numbers.how can i edit that?what right DAX?

thank u 

4 REPLIES 4
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @dombarg,

Please try the following formula and check if it works fine.

to current assert=
[measure]
    / CALCULATE (
        SUM ( '1396_09_21_BS'[balance] ),
        ALLEXCEPT ( '1396_09_21_BS', '1396_09_21_BS'[first column] )
    )


If there is till issue, please share your .pbix file for further analysis. It's hard to trouble shoot it without sample table.

Best Regards,
Angelia

hi again.thank u.

your DAX is perfect.but there is a problem in that.

the third column ([عنوان کل] ) is filter contex of another parent(via page filter)  and when i use your DAX,it ignores those filter and calculate the ratio to all parent.how can i limit your DAX to filtered contex?thanks  

Hi @dombarg,

Please mark the right/helpful reply as answer. More people will learn new things here.  If you haven't, please feel free to ask.

Best Regards,
Angelia

Hi @dombarg,

There is no way to get the value in page filter used automatically. If you use [عنوان کل]=1 in page level, please add a filter limit in the DAX and check if works fine.

Best Regards,
Angelia

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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