Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'm struggling with the following issue, at first instance, it does not seem very difficult, but it's giving me headaches. In excel you can add a calculated field in a Dynamic table in terms of the columns of the Dynamic Table. This is really useful in the example I show next:
In the example, it is easy to see the difference between both rejection rates for Ref 105:
I want to do exactly the same in Power BI, however, Power BI does not allow you to add a calculated column directly on the Matrix visual element. I guess that I need to create a new Consult or database based on the original database and sum all the TOTAL, OK, and NOK and then do the math. This is what I am struggling with.
Any help? Thanks!
Jaime
Solved! Go to Solution.
Hi @JaimedelaCasa ,
Try below steps
Go to the "Fields" pane in Power BI and locate the table or dataset that contains the columns you want to use for the calculation.
Right-click on the table or dataset and select "New Measure." Alternatively, you can click on the "New Measure" button in the "Modeling" tab of the Power BI ribbon.
In the formula bar that appears, you can define the calculation for your measure. For example, if you want to calculate the rejection rate as KO/TOTAL, you can use the following formula:
Replace 'YourTable' with the actual name of your table or dataset, and 'KO' and 'TOTAL' with the names of the respective columns.
Press Enter to create the measure. It will appear in the "Fields" pane under the table or dataset.
Now, you can add the measure to your Matrix visual. Drag and drop the measure onto the appropriate area in the Matrix, such as the "Values" area.
The Matrix visual will display the calculated measure based on the columns you specified. It will calculate the rejection rate using the formula you defined.
By creating a measure in Power BI, you can perform complex calculations that involve multiple columns and display the result in visual elements like the Matrix. This allows you to achieve the desired weighted average and analyze the rejection rate per material over a certain period of time.
Note: Make sure your column data types are appropriate for the calculations you're performing. For example, the 'KO' and 'TOTAL' columns should be numeric or whole number data types.
Hi @JaimedelaCasa ,
Try below steps
Go to the "Fields" pane in Power BI and locate the table or dataset that contains the columns you want to use for the calculation.
Right-click on the table or dataset and select "New Measure." Alternatively, you can click on the "New Measure" button in the "Modeling" tab of the Power BI ribbon.
In the formula bar that appears, you can define the calculation for your measure. For example, if you want to calculate the rejection rate as KO/TOTAL, you can use the following formula:
Replace 'YourTable' with the actual name of your table or dataset, and 'KO' and 'TOTAL' with the names of the respective columns.
Press Enter to create the measure. It will appear in the "Fields" pane under the table or dataset.
Now, you can add the measure to your Matrix visual. Drag and drop the measure onto the appropriate area in the Matrix, such as the "Values" area.
The Matrix visual will display the calculated measure based on the columns you specified. It will calculate the rejection rate using the formula you defined.
By creating a measure in Power BI, you can perform complex calculations that involve multiple columns and display the result in visual elements like the Matrix. This allows you to achieve the desired weighted average and analyze the rejection rate per material over a certain period of time.
Note: Make sure your column data types are appropriate for the calculations you're performing. For example, the 'KO' and 'TOTAL' columns should be numeric or whole number data types.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!