Forum Discussion
Creating new table adding a custom column to summarize
- 3 years ago
Hi Victormar ,
Please try:
Table = UNION ( SUMMARIZECOLUMNS ( 'DIM_Chassis', "Name",("Mileage"), "OK", COUNT ( DIM_Chassis[c_MileageLateastIsDeviatedGreen] ), "Over", COUNT ( DIM_Chassis[c_MileageLateastIsDeviatedRed] ), "Below", COUNT ( DIM_Chassis[c_MileageLateastIsDeviatedYellow] ) ), SUMMARIZECOLUMNS ( 'DIM_Chassis', "Name",("Speed"), "OK", COUNT ( DIM_Chassis[c_SpeedLateastIsDeviatedGreen] ), "Over", COUNT ( DIM_Chassis[c_SpeedLateastIsDeviatedRed] ), "Below", COUNT ( DIM_Chassis[c_SpeedLateastIsDeviatedYellow] ) ), SUMMARIZECOLUMNS ( 'DIM_Chassis', "Name",("EnergyConsumption"), "OK", COUNT ( DIM_Chassis[c_EnergyConsumptionLateastIsDeviatedGreen] ), "Over", COUNT ( DIM_Chassis[c_EnergyConsumptionLateastIsDeviatedRed] ), "Below", COUNT ( DIM_Chassis[c_EnergyConsumptionLateastIsDeviatedYellow] ) ) )Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Victormar ,
What does the fleet_id look like? What is the logic of filtering? Can you please share more details to help us clarify your scenario?
Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello! I did a workaround that is working for now, just creating a matrix with the values. My idea was too much tailored and it would have been difficult to maintain in the long run.
Many thanks for your time and help 😄