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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Re-Calculate table on filter change

Hi!,

 

I'm trying to get the CDF and PDF for a file in a table; my table has ten columns, and I need to summarize 5 of them and get my calculations done on the new summary table.

First, I created this summary table,

 

 

 

SummaryTable = CALCULATETABLE(SUMMARIZE(Table, Table[count_success], Table[subscriber_id], Table[country], Table[product], Table[StartDate]))

 

 


Then, I created two new columns CDF:

 

 

 

CDF_ = 
VAR avg_ = AVERAGE(SummaryTable[count_success])
VAR std_ = STDEV.P(SummaryTable[count_success])

RETURN
    NORM.DIST(SummaryTable[count_success], avg_, std_, TRUE())

 

 

 

And PDF: 

 

 

PDF = 
VAR avg_ = AVERAGE(SummaryTable[count_success])
VAR std_ = STDEV.P(SummaryTable[count_success])

RETURN
    NORM.DIST(SummaryTable[count_success], avg_, std_, FALSE())

 

 

 

My problem is in the filtration:

 

After calculating the new table, do I have to create new relationships between the SummaryTable and the other dimension tables, like countries and products? Because when I change the filters, I see the original table data being changed while the summary stays the same.
When I created the relationship between the Summary Table and dimensions, I could filter. However, the CDF and PDF are not recalculated based on the filtered data; they stay the same, and only the filtered values disappear.

I appreciate any feedback.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The PDF and CDF were created as new columns, in this way they weren't being recalculated in filters change, to overcome this I created them as measures in a third table and used those measures in the visuals. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

There is no need to create a relationship. Are you sure you are using the fields in the calculation table? You can check the results below:

vtianyichmsft_0-1709618537224.png

vtianyichmsft_1-1709618543916.png

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

 

Anonymous
Not applicable

Hi @Anonymous, 

thanks for your reply, I tired the same, and I do also calcualte the AVG and STD within the summary table but they aren't being changed on the summary table. 

Anonymous
Not applicable

The PDF and CDF were created as new columns, in this way they weren't being recalculated in filters change, to overcome this I created them as measures in a third table and used those measures in the visuals. 

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.

Top Solution Authors