Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Good day all,
I am trying to wrap my head around an issue and can't seem to figure it out. Also tried searching different topics and either it didn't work or I didn't understand something in full.
I have created the following Measure:
In terms of "Slicers", I have a Name Slicer and a Date Slicer
Using the "Card" Visualization I have shown
1) First Card: Amount of fuel/hour based on individual selection from Name Slicer for given Date
2) Second Card: Amount of fuel / hour for given Date (basically "company" value, Name Slicer does not affect this card due to "Edit Interactions" feature)
The measure that I am trying to solve is to find the % Deviation of the individual vs company. I've tried using combinations of CALCULATE with SELECTEDVALUE or FILTER but don't seem to figure it out.
Any information and guide towards the right direction is very much appreciated and I will be happy to give more information if needed
I have also attached an image with the model of the pbix
Solved! Go to Solution.
Hi @ValentinB ,
I have built a simple data sample:
individual = SUM('Table'[Hour])
company = CALCULATE(SUM('Table'[Hour]),REMOVEFILTERS('Table'[Name]))
% Deviation = ( [individual]-[company]) / [company]
Output:
If you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ValentinB ,
I have built a simple data sample:
individual = SUM('Table'[Hour])
company = CALCULATE(SUM('Table'[Hour]),REMOVEFILTERS('Table'[Name]))
% Deviation = ( [individual]-[company]) / [company]
Output:
If you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-eqin-msft ,
Many thanks for your help, indeed it worked on my side as well. Was not fully aware of the "REMOVEFILTER" function but I am glad I've learned something new.
Best wishes and Happy Holidays !
@ValentinB , As you want selectedvalue as a benchmark, you need an independent table
So you need an independent company name table and use that in a measure to get that companies value and this should interact with visual
Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
Hello @amitchandak ,
I have accepted as a solution @v-eqin-msft method since it worked but I will also check and try to implement your part as I am on a learning curve regarding PowerBi and every intel is a good chance to develop more skills and methods.
Many thanks as well for your reply and wish you also Happy Holidays.
User | Count |
---|---|
86 | |
82 | |
42 | |
40 | |
35 |