Forum Discussion
Subtracting Value
Hi Anonymous ,
Refer to:
Measure =
var total_ = CALCULATE(SUM('Table'[Qas(m)]),ALLEXCEPT('Table','Table'[size]))
return total_-MAX('Table'[Limit])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi V-lianl-msft ,
thanks for your reply,
suppose Qas (m) and Limit is calculated column like new measure's then how do I calculate ?
please help me.
- V-lianl-msft5 years agoCommunity Support
Hi Anonymous ,
If there is no sample file to view the measure details, there may be deviation.
Please try:
Measure = var total = SUMX(ALLEXCEPT('Table','Table'[Size]),[Measure(Qas)]) return total-[Measure(limit)]If the problem persists,could you share the sample pbix via cloud service like onedrive for business?
Please remove any sensitive data before uploading.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- Anonymous5 years agoNot applicable
data look like below, please update me (can't share pbi file)
- V-lianl-msft5 years agoCommunity Support
Hi Anonymous ,
Be aware that DAX measure are based on row context so any given value from slicers, filters, interactions with other visualizations, variables, relationships and so on can influence your result.
Please paste the data in the form of a table, and provide the two measures involved in the screenshot. It will make me more clear about your scenaio.
Please remove any sensitive data before uploading.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.