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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
amsrivastavaa
Helper III
Helper III

Reference Table not changing

Hi Guys!!,

 

In Power BI Query Editor, I have created Table-A and then created Table-B as a reference table of Table-A and then apply Group by based on some column for one measure.

 

Now, on report canvas, I have created one filter F-1 (derived from Table-A) and placed Table-A in table visualization and TableB in onother visualization.

 

Now, when i selected any filter in F-1, it only filtered Table-A, wondering why Table-B is not getting filtered even though it is reference by Table-A.

 

Please suggest how this is possible.

 

Thanks

Amit 

 

 

1 ACCEPTED SOLUTION

I don't think that is possible because a calculated column formula does not respond to a change in slicers/filters - only measures do.


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

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

Share some data, explain the question and show the expected result.


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

HI @Ashish_Mathur ,

 

Filters : Project

Table-A : Columns (Project, Type,Year,Amount)

 

ProjectTypeYearAmountTotal_Amount
P-1Credit20171060
P-2Credit20172060
P-3Credit20173060
P-1Credit2018100600
P-2Credit2018200600
P-3Credit2018300600

I want to include another column say Total_Amount which can hold summataion of  column amount based on Type and Year, in above case it will be (10+20+30=60) for Type=Credit and Year =2017 And it will be (100+200+300=600) for Type=Credit and Year=2017. 

 

To calculate, Total_Amount, I have used below DAX in Power BI DATA page

TotalAmount = CALCULATE(SUM('Transaction'[Amount]),ALLEXCEPT('Transaction','Transaction'[Type],'Transaction'[Year]))

 

As this TotalAmount column is created at DATA Page, so I am able to filter the data based on TotalAmount on Report Canvas, till here things are fine.

 

Now problem comes when I have UN-selected P-1 in Project filter in Report canvas, then I will have data like this as shown below 

 

ProjectTypeYearAmountTotal_Amount
P-2Credit20172060
P-3Credit20173060
P-2Credit2018200600
P-3Credit2018300600

 

i.e. P-1 data is not available now, that perfect.

And, in this case my TotalAmount which I have calculated via DAX at Data page is still showing Total that includes P-1 data as well, which is not correct.

 

I want, TotalAmount will always be calculated based on data avaialble after filterationas shown below

 

ProjectTypeYearAmountTotal_Amount
P-2Credit20172050
P-3Credit20173050
P-2Credit2018200500
P-3Credit2018300500

 

I want, this too be done at table level itsels so that I can use this table further as well, if i will use any measure filteration concpets at Report Canvas level, I will not be able to use that data any further.

 

Please suggest!!''

 

Thanks 

Amit 

Hi, @amsrivastavaa 

 

You can try the following methods.
Measure:

Total_Amount = CALCULATE(SUM('Transaction'[Amount]),ALLSELECTED('Transaction'[Project]))

vzhangti_3-1666603494931.png

Data view:

vzhangti_4-1666603689094.png

The calculated columns of the Data view are fixed. Cannot be changed by slicers or filters. 

 

This is by design. Power BI is now unable to achieve what you need . You can submit an idea for it at   https://ideas.powerbi.com/ideas/   and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

These measures work.

Amt = SUM(Data[Amount])
Measure = CALCULATE([Amt],ALLSELECTED(Data[Project]))

Hope this helps.

Untitled.png


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

Hi @Ashish_Mathur ,

 

I want to add this column at DATA page, as I want to use this data some where else.

 

amsrivastavaa_1-1666583886382.png

 

1. While using provided DAX, its not giving me summation based on what Project left, instead it giving me individual amount of Measure.

 

FIrst, I need to implement here at Data page.

Secondly, when user select let say P-2 and P-3 then summation would be of AMOUNT for P-2 and P-3 only.

 

Please suggest 

 

Thanks

Amit 

I don't think that is possible because a calculated column formula does not respond to a change in slicers/filters - only measures do.


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

Hi @amsrivastavaa 
Are the 2 tables joined?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi @aj1973 ,

 

As in Table -B, I have used Grouped by so after that there is no Legitimate column available in Table -B on which joins will be apply.

 

Any other work around, please suggest

 

Thanks Amit

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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