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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Visualizing a dynamic summarized table?

Hi all,

I have a question regarding the visualizing of data from a dynamic summarized table.

 

The situation: We are doing Monte Carlo Analyses on risks. This analysis simulates every risk 10.000 times to estimate the impact. The result of those simulations (the impact of the risk in Euro's) is written to our SQL Server. Power BI uses the raw data as a source, which is structured as follows:

 

risk_idsimulation_numberimpact
111.250
121.600
1 ...
19999900
1100001.000
21900.000
221.000.000
2 ...
29999950.000
210000980.000

 

The requirement is to sum the impact of all risks and group by the simulation number, so that we always end up with 10.000 rows (regardless whether 1 or 50 risks are selected).

Then, we want to divide the summed impact into bins.

Finally, we want to show how many simulations fell into each bin by using a histogram.

 

The issue I am currently facing is that there is also a need for filtering, for example on a project (which contains a subset of risks). When a filter is applied, Power BI should re-sum the impacts of the risks and group by simulation number. Therefore, creating a summarized table (by which I mean using DAX's SUMMARIZE function) which only refreshes when the dataset is refreshed does not meet this requirement.

 

My questions is therefore: is it possible to use a dynamic summarized table as a source for a histogram? 

If yes, what are the steps to achieve this? If no, are there any alternatives I could look into?

 

Another option I have tried is using a custom visual from the marketplace, but they ultimately lead to the same result as the native histogram. I have also tried using the Python visual, but this has a limit of 250.000 rows (25 risks).

 

This is an example what I'm hoping to recreate. The source of the visual below is Excel, based on 7 risks and opportunities.

Capture.PNG

 

I'm looking forward to hearing your suggestions.

Thanks in advance for your help!🙂

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

AFAIK, current power bi does not support to create dynamic calculate column/table based on filter/slicer.

Filter/slicer operated on a virtual table generated from data model tables(calculated column/table also stored on this level), you can't use the child level interaction to affect the parent which generates them.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

AFAIK, current power bi does not support to create dynamic calculate column/table based on filter/slicer.

Filter/slicer operated on a virtual table generated from data model tables(calculated column/table also stored on this level), you can't use the child level interaction to affect the parent which generates them.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi @v-shex-msft ,

 

Thank you for your reply.

As an alternative I moved the entire Monte Carlo analysis to the Python visual in Power BI, instead of extracting the results from SQL Server. This prevents the Python visual from reaching the 250.000 row limit, however it does impact the tenant performance.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.