Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kilala
Resolver I
Resolver I

How to Lock Value for measure

Hi all,

I have a measure that calculate value for brand after adjustment. Some business logic is applied, but in the end, i can get the amount after adjustment for all involved brands. for example:

BrandBeforeAfter
A1000015000
B5000055000
C2000021000

 

in my dashboard, i also put slicer that allows user to filter brands that they want to see. however, in my dashboard, looks like they also remove the brand from calclation, causing my current calculation is wrong. 

 

for example, if user filter Brand A &C, they should see following result:

BrandBeforeAfter
A1000015000
C2000021000

 

however, currently they are seeing other amount, example:

BrandBeforeAfter
A1000015000
C2000028000

 

how do i fix this? thanks.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your data model looks like, or how your measures look like, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file.

I think, in your measure, if you tried to use ALLSELECTED function, then perhaps you can try to replace ALLSELECTED to ALL, like the sample pbix file that I attached.

 

Picture1.png

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your data model looks like, or how your measures look like, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file.

I think, in your measure, if you tried to use ALLSELECTED function, then perhaps you can try to replace ALLSELECTED to ALL, like the sample pbix file that I attached.

 

Picture1.png

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Hi, 

Yes I think it's because I'm using ALLSELECTED instead of ALL in my measure. 

will correct all measures related. tqsm!

amitchandak
Super User
Super User

@kilala , You need to share the formula, I doubt it can change because of data refresh

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.