The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi @amitchandak ,
Please help me insorting out this...
I had a task :
i have 5 values (I&D, Olefins, Polyolefins, Refining, Technology) in a business segment column.
The business segments i have to show in a slicer.
for 5 values there are seperate measures
and i get them all together in a single measure as below by using Variables.
I have kept the slicer as single select so now they can select any one and it is working fine.
Now the problem is they want multiselect and if they select 2 values then it will show average of the 2 measures selected.
Please let me know how to create average, if they select 2 values in business segment slicer.
Thanks,
Krish..
Solved! Go to Solution.
It's weird because on my test sample it works just fine...
Try this measure:
@krrish116 Try this:
@Anonymous It is not working ..
Please help me to sortout this
How exactly it's not working? Some errors or anything?
No Errors Sir as of now..
but if i select 2 values in slicer then it is coming blank. it is not showing Average.
Olefins Selected
Poly Olefins selected
If i select 2 then it is not showing Average it is showing blank
It's weird because on my test sample it works just fine...
Try this measure:
Thanks alot it is working..
@krrish116 , if 'PlantArea'[Business Segment] joined with table having (or is the same tbale)
Then this should work
CALCULATE([I&D Reliability%])
I am really not sure on need of 5 meaures, you can try like this too.
CALCULATE([I&D Reliability%],filte('PlantArea', 'PlantArea'[Business Segment] in allselected('PlantArea'[Business Segment]) ) )
For all 5 Business Segments the measures are different for some business segments im using 2 columns for some im using 3 columns to multiply and divide to get the %