Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi,
I have created a measure called [Days].It gives me the below output when put in Matrix.
I want to create a measure called [Total Days] which will be the total of the [Days] Measure. However, Days is a measure and directly the Sum function cannot be applied.
I want the [Total Days] to work by totalling the Days in visualization. This can vary as it is a measure and the measure varies depending on the slicer selections.
For the above example I want to the new measure should have the value =124 . That is totalling everything present in [Days] Measure.
I tried to create a measure called SUMAX=
, but it only displays the total above. I cannot use this. I want to use the Total Days measure for yet another measure, which will essentially be Average Weighted= Divide(Days*Nursing CMI Real, Total Days)
The [Days} Measure is as follows-
Solved! Go to Solution.
Hi, Thank you for the reply. Based on you suggestion and with a few modifications, I finally got the solution. Because my data had multiple tables , Allselected could not be used directly so I had to modify it a bit.
Hi @Vatz8 , hello lbendlin, thank you for your prompt reply!
Based on your description, we suggest you use AllSELECTED function to remove context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.
I have created a simple test for your reference:
TotalDays2 = SUMX(
ALLSELECTED('Table'),
[Days]
)
Result:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Thank you for the reply. Based on you suggestion and with a few modifications, I finally got the solution. Because my data had multiple tables , Allselected could not be used directly so I had to modify it a bit.
SUMX(ADDCOLUMNS(SUMMARIZECOLUMNS(Table1[Skilled Stay Range],Table2[Full name],table3[Facility]),"Sum",CALCULATE([Days])), [Sum])
It is giving me incorrect answer. I tried your solution under measure Sumaaa .I need 124 across. I even tried to directlly use it in my final measure but does not work.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Need help uploading data? 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.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Hi,
To make it clearer, this is the output for measure Total Days I am looking for.
It should be 124 all across so that my calculation for Weighted average can be correct
second request:Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Need help uploading data? 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.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |