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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
admin11
Memorable Member
Memorable Member

How to modify my expression , so that it will not return every row same value ?

Hi All

 

I have below expression working fine in the past :-

_amount_select2 =
SWITCH(
SELECTEDVALUE(SliceTable[SLice]),
"BRAND_C",IF(ISINSCOPE(summrizeTable3[rank]),
CALCULATE(SUM('SALES'[sales]),FILTER(ALLSELECTED('SALES'),[BRAND_C]=MAX('summrizeTable2'[BRAND_C]))),
SUM('SALES'[sales])))
 
Today it return every row same amount , which is wrong .
admin11_0-1642633295089.png

 

May i know how to trouble and modify the expression , so that it will return correctly ?
 
My PBI file :-
 
Paul Yeo
8 REPLIES 8
Anonymous
Not applicable

Hi @admin11 ,

 

The file you uploaded before has been deleted, so if you are still confused about it, please provide me with more details about your table and your expected output or share me with your pbix file after removing sensitive data.

 

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @admin11 ,

 

Eyelyn9_0-1643075225280.png

 

Glad to know your issue has been solved !😀

Could you please knidly share the solution and then Accept it as the solution to make the thread closed. More people will benefit from it. 

 

Best Regards,
Eyelyn Qin

@Anonymous 

sorry that i just found the answer is not fully correct. so need to wait.

VahidDM
Super User
Super User

HI @admin11 

 

Can you upload your file on https://wetransfer.com/ and share the link

 


Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

@VahidDM 

Thank you for sharing , i already found the issue. 

 

Now working fine.

 

Paul

Hi,

There is no file there.  Also, please describe the question in simple English.  What are you trying to do/accomplish?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello my PBI master @Ashish_Mathur , thank you for looking into my post . i manage to found the issue and now working fine.

 

Paul 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (6,050)