Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi,
I have created the below measure, so that if i select a 'vendor name' from the drop down slicer, it should subtract the average score (of the selected vendor from the slicer) from the peer average score (the second part of the measure which adds a filter of related peers- which are also a group of vendors).
The result that i am getting however is incorrect as it only gives me the average score of the selcted vendor in the output and does not consider subtractraction.
I think this measure needs to add some variable in the begining so that the measure responds to the selected vendor from the slicer.
Solved! Go to Solution.
Hi @anwarbi ,
Try to create a measure like below:
Measure =
var peer_ = CALCULATE(AVERAGE('Table'[value]),ALLEXCEPT('Table','Table'[peer]))
var vendors_ = AVERAGE('Table'[value])
return peer_-vendors_
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 @anwarbi ,
Try to create a measure like below:
Measure =
var peer_ = CALCULATE(AVERAGE('Table'[value]),ALLEXCEPT('Table','Table'[peer]))
var vendors_ = AVERAGE('Table'[value])
return peer_-vendors_
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!