March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi all,
I need help here. I have a table with subtotals by month. I need to divide a specific row with the subtotal.
For denomitor, i used this formula A(D)=calculate([A],DATESMTD(Dates[MonthEnding]))
For numerator, may I know how to get the value of the specific row?
Thanks!
Best Regards,
Joey
Hi, @joeywong ;
In the image above, I don't see the 'Date' [MonthYear] column, you can try to put it in. Or try changing the formula:
D =
DIVIDE (
SUM ( 'Table'[Column] ),
CALCULATE (
SUM ( 'Table'[Column] ),
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[MonthYear] = MAX ( 'Date'[MonthYear] ) )
)
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
Solved: How to upload PBI in Community - Microsoft Power BI Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
In addition to @v-yalanwu-msft answer,
For your understanding, typically, you will use sum / max / min / count to get values of a selected row.
-- Select the type of the current row
var _selT = SELECTEDVALUE(Table2[Type])
-- To get the same row amount value, you can use sum amount as below:
var _v = CALCULATE(sum(Table2[Amount]), filter(Table2, Table2[Type] = _selT))
Check similar requirement I answered
Hi,
Your question is not clear. Is the image that you have shared a Table visual that you have already created? Share the download link of your PBI file.
Hi, @joeywong ;
If you wan get the value of specific row, you could try Sum([colum]) in measure. as follow:
Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM([Value]),ALLEXCEPT('Table','Table'[Month])))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Yalan,
Thank you for your suggestions. However, when I incorporate the formula, the % total does not come up to 100%.
Is there anything wrong with the following formulas?
D = Divide(
sum('Table'[Column]),
Calculate(Sum('Table'[Column]),
ALLEXCEPT('Date','Date'[MonthYear])))
Thanks!
Hi Yalan,
Thank you for your suggestions. However, when I incorporate the formula, the % total does not come up to 100%.
Is there anything wrong with the following formulas?
D = Divide(
sum('Table'[Column]),
Calculate(Sum('Table'[Column]),
ALLEXCEPT('Date','Date'[MonthYear])))
Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |