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.
Model | A-Weight Difference1 |
a | |
b | |
c | |
d | |
e |
Solved! Go to Solution.
@PhilipTreacy Thanks for your contribution on this thread.
Hi @JL0101 ,
You can update the formula of measure [A-Weight Difference] as below and check if it can return the expected result.
A-Weight Difference =
VAR _Revnum =
MAX ( 'Full_Rebar'[C-Revision Number] )
VAR PreviousRev =
CALCULATE (
MAX ( 'Full_Rebar'[C-Revision Number] ),
FILTER (
ALLSELECTED ( 'Full_Rebar' ),
'Full_Rebar'[C-Revision Number] < _Revnum
)
)
VAR _preweight =
CALCULATE (
SUM ( 'Full_Rebar'[weight_calculated] ),
FILTER (
ALLSELECTED ( 'Full_Rebar' ),
'Full_Rebar'[C-Revision Number] = PreviousRev
)
)
RETURN
SUM ( 'Full_Rebar'[weight_calculated] ) - _preweight
If the above ones can't help you figure out, please provide some raw data in your table 'Full_Rebar' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And 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.
How to upload PBI in Community
Best Regards
@PhilipTreacy Thanks for your contribution on this thread.
Hi @JL0101 ,
You can update the formula of measure [A-Weight Difference] as below and check if it can return the expected result.
A-Weight Difference =
VAR _Revnum =
MAX ( 'Full_Rebar'[C-Revision Number] )
VAR PreviousRev =
CALCULATE (
MAX ( 'Full_Rebar'[C-Revision Number] ),
FILTER (
ALLSELECTED ( 'Full_Rebar' ),
'Full_Rebar'[C-Revision Number] < _Revnum
)
)
VAR _preweight =
CALCULATE (
SUM ( 'Full_Rebar'[weight_calculated] ),
FILTER (
ALLSELECTED ( 'Full_Rebar' ),
'Full_Rebar'[C-Revision Number] = PreviousRev
)
)
RETURN
SUM ( 'Full_Rebar'[weight_calculated] ) - _preweight
If the above ones can't help you figure out, please provide some raw data in your table 'Full_Rebar' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And 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.
How to upload PBI in Community
Best Regards
Please provide data and excpected result. I can't tell from what you have provided what data you are using or what you expect is the correct result.
Regards
Phil
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
95 | |
71 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
61 | |
44 | |
42 |