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
SeungLee95
Microsoft Employee
Microsoft Employee

Display a new Table/Matrix/Rows Subtotals based on filtered data

Hello,

 

I have this following table:

SeungLee95_0-1744764311538.png

 

And created a matrix with the following Rows and Values/Columns based on that table:

NameForestUnitStageCostLiveDate#1Date#2Date#3
ABCDEFGABCDEFGABCDEFG15.25xx/xx/xxyy/yy/yyzz/zz/zz
ABCDABCDABCD16.25x2/x2/x2y2/y2/y2z2/z2/z2

 

Example

SeungLee95_2-1744764391961.png

 

As seen on the table above, I also have certain filters to it. I'd like to create a new table/matrix/visual at the right of those filters. To give some more details:

My goal is to create a new table/Matrix/visual that would have some new measures called "PX" like the following:

P30P50P70P100
35710

 

The issue I'm running into is trying to create this new table/value based on the "Filtered out rows and their CostLive Values" from the previous matrix. This is so that every time it shows filtered out values, it can dynamically calculate those values based on what's been filtered. Is there any way to achieve this? If so, what would be the best way to achieve this as well? 

 

Thank you for anyone that could help me with this!

1 ACCEPTED SOLUTION

Hi @SeungLee95 ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @rajendraongole1 for the prompt response.

1.It is  possible to create a new table:

  • In Power BI, when you apply filters, the data in your visual is automatically affected. To create a table that only shows the filtered rows (based on the current filters), you can use a DAX function like FILTER to dynamically capture those filtered rows.

FilteredCostTable =
FILTER(
YourOriginalTable,
NOT(ISBLANK(YourOriginalTable[CostLive]))
&& YourOriginalTable[CostLive] <> 0
)

This table will dynamically adjust based on the filters applied in your visuals (such as by name, date, or other fields).

2.Now, you can create measures to calculate the different percentiles (P30, P50, P70, P100) for the CostLive values in the filtered table. Use PERCENTILEX.INC

P30 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
0.30
)

P50 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
0.50
)

P70 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
0.70
)

P100 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
1.00
)

  • PERCENTILEX.INC will calculate the inclusive percentile, meaning it will calculate the exact value that corresponds to the given percentile (e.g., P30 for 30%).
  • The 0.30, 0.50, 0.70, and 1.00 are the percentiles (P30, P50, P70, P100).

After defining these measures, you can add them to your matrix as columns. Every time a user applies filters, these percentiles will automatically recalculate based on the filtered rows.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

View solution in original post

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @SeungLee95 - Yes, you can create dynamic percentile-based values (P30, P50, P70, P100) like the "PX" values you're describing Power BI. The key is to create DAX measures that respect all filters and calculate the desired percentile values from the CostLive column.

can you check with funtion, PERCENTILEX.INC is filter-aware, so it will only calculate percentiles.

PERCENTILEX.INC function (DAX) - DAX | Microsoft Learn

 

Please check with this and hope this works.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 ,

 

Thank you very much for the answer. I'm aware I can use perecentilex functions. However, my question is more so about the table/matrix. Is it possible to create a new table/matrix based on what has been filtered? And what would be the best way of going about that?

Hi @SeungLee95 ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @rajendraongole1 for the prompt response.

1.It is  possible to create a new table:

  • In Power BI, when you apply filters, the data in your visual is automatically affected. To create a table that only shows the filtered rows (based on the current filters), you can use a DAX function like FILTER to dynamically capture those filtered rows.

FilteredCostTable =
FILTER(
YourOriginalTable,
NOT(ISBLANK(YourOriginalTable[CostLive]))
&& YourOriginalTable[CostLive] <> 0
)

This table will dynamically adjust based on the filters applied in your visuals (such as by name, date, or other fields).

2.Now, you can create measures to calculate the different percentiles (P30, P50, P70, P100) for the CostLive values in the filtered table. Use PERCENTILEX.INC

P30 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
0.30
)

P50 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
0.50
)

P70 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
0.70
)

P100 =
PERCENTILEX.INC(
FilteredCostTable,
FilteredCostTable[CostLive],
1.00
)

  • PERCENTILEX.INC will calculate the inclusive percentile, meaning it will calculate the exact value that corresponds to the given percentile (e.g., P30 for 30%).
  • The 0.30, 0.50, 0.70, and 1.00 are the percentiles (P30, P50, P70, P100).

After defining these measures, you can add them to your matrix as columns. Every time a user applies filters, these percentiles will automatically recalculate based on the filtered rows.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

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.