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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Davor_K
Frequent Visitor

Aggregated data and getting the consolidated information

Hi all,

this is my first time posting in the forum I hope that I will able to get a help with the issue that I have been trying to solve for a while.

 

I have the table with the following information:

Capture1.JPG

Here I have the list of the different projects impacting different companies/entities and units. Also, I have assessment of their impacts on technology and processes. Based on those two impact values, I have calculated Total impact.

 

Now, I would like to aggregate/consolidate information, so I can see what would be average impact value and grading (high/medium/low) of the particular project on company/entity/unit selected through the slicers. For example, if I select Entity A I should get:

 

Capture5.JPG

For that purpose, I created calculated table that should aggregated the Name of the projects value, calculate average of Total impact value and set the grading (high/medium/low):

 

CalculatedTable =

    ADDCOLUMNS(

        SUMMARIZE(Sheet1;

                Sheet1[Name of the project];

                "Average_impact"; AVERAGE(Sheet1[Total impact]));

                "Impact level"; if([Average_impact]<=1,5; "High";IF(AND([Average_impact]>=1,5;[Average_impact]<2,5);"Medium";"Low")))

 

Also, I have created Many-to-one, Both, relationship between data table (Sheet1) and calculated table (CalculatedTable) by connecting the Name of the project value. 

 

The issue that I am getting is no matter which combination of the slicers I select, the average value of the impact value is always the same. It seems that calculated table does not care about the selected values through the slicers when calculating the average impact, but it uses all information from the data table:

 

Capture2.JPG

 

When selecting different slicer:

 

Capture3.JPG

 

Here the average impact for Project C and Project A should be as same as in the data table (3,00 and 2,50).

 

Capture4.JPG

Here the average impact for Project B and Project C should be as same as in the data table (1,00 and 1,50).

 

If somebody was experiencing the similar issue or know how to fix this, I would really appreciate some guidance.

 

Here is the .pbix: https://www.dropbox.com/s/b2a8nsyks8b7p2w/Project_test_PBI1.pbix?dl=0

 

Many thanks, best regards.

12 REPLIES 12
ChandeepChhabra
Impactful Individual
Impactful Individual

@ChandeepChhabra works good, I have already implemented this solution. The question is how to get Impact Tag as a legend in a gantt vizual Smiley Happy

 

To do that, Impact Tag should be a column value instead of measure as far as I have managed to find until now. 

 

Thank you and best regards.

@Davor_K 

In the existing Power BI file. Please add a new column with the following formula

Column = [Impact Tag]

 

Capture.PNG

 

Thanks

@ChandeepChhabra that is good, and results with the following overview:

 

Capture.JPG

It would be good if there would be unique values in the project's name. What is needed is consolidated information, meaning something like:

 

Capture1.JPG

To consolidate, for example, project names I used calculated table to get "Project A", "Project B" and "Project C". That is ok, but the impact level is calculated based on all fields and it is not re-recalculated by using the slicers.

 

Thank you and best regards.

@Davor_K Can you please share your pbi file which has this chart?

parry2k
Super User
Super User

@Davor_K you dont need to create caculated table to achieve this.

 

Add following measures

 

Avg Impact = AVERAGE( Sheet1[Total impact] )

Impact level = 
SWITCH( TRUE(),
[Avg Impact]<=1.5, "High", AND([Avg Impact]>=1.5,[Avg Impact]<2.5),"Medium", "Low" )

Now in your table visuals uses these measure and name of the project from your main table. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi parry2k,

 

Many thanks on feedback. The solution works great, however I need this information within calculated table because later on I am going to use it as a legend in the gantt chart. I tried to apply same solution as calculated table, but it does not work...it keeps the constant values again.

 

Best regards.

@Davor_K once you have calculated table, slicer will not work because values are pre calculated.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k I was trying to find any solution how to consolidate information to have an aggregated overview and the only way that I was able to find is to create calculated table, which would be used as basis for other visuals. But if calculated table is not dynamic, any other ideas to look at?

 

Thank you and best regards.

@Davor_K what is the limitation of measures I proposed originally



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k The limitation is that I cannot use measure as a legend in gantt chart, but instead I have to use column values.

 

For example:

 

Capture.JPG

I selected Entity B and got two projects in the gantt which impacts that Entity: Project A and Project C. So far, so good.

 

Now, I would like to visualize the level of impact by using the legend feature in the gantt. If I drag measure, the gantt does not accept it, bacause I need to use the column values (in this case, Impact level (column value)) which shows wrong information. To get the bar properly colored, I need to use the values from your solution, but I cannot find the way how to do it.

 

Thank you and best regards. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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