Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hello,
I need to add the fixed values per company to the variable values per company. I ask for help in creating the DAX formula.
Grateful.
Solved! Go to Solution.
It sounds like you want to create a DAX formula in Power BI or another similar data analysis tool to add fixed values to variable values for different companies. In DAX, you can use the SUMX function to iterate through a table and apply calculations. Here's a general outline of how you can create a DAX formula for this purpose:
Assuming you have a table with columns like "Company," "FixedValue," and "VariableValue," you can create a calculated column or a measure to calculate the sum of fixed and variable values per company.
Here's an example of how you can create a calculated column:
TotalValue = [FixedValue] + [VariableValue]
This formula creates a new column called "TotalValue" that adds the "FixedValue" and "VariableValue" for each row in your data.
If you want to calculate the total sum of these values for each company, you can create a measure using SUMX and SUMMARIZE:
TotalSum = SUMX(
SUMMARIZE(
YourTableName,
YourTableName[Company]
),
[FixedValue] + [VariableValue]
)
Replace "YourTableName" with the actual name of your table. This measure calculates the sum of fixed and variable values for each company in your table.
You can then use this measure in your reports to display the total sum of values per company.
Please adapt the DAX formula to your specific data structure and requirements. If you have a different data model or need more specific guidance, provide more details about your data structure, and I can assist you further.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
It sounds like you want to create a DAX formula in Power BI or another similar data analysis tool to add fixed values to variable values for different companies. In DAX, you can use the SUMX function to iterate through a table and apply calculations. Here's a general outline of how you can create a DAX formula for this purpose:
Assuming you have a table with columns like "Company," "FixedValue," and "VariableValue," you can create a calculated column or a measure to calculate the sum of fixed and variable values per company.
Here's an example of how you can create a calculated column:
TotalValue = [FixedValue] + [VariableValue]
This formula creates a new column called "TotalValue" that adds the "FixedValue" and "VariableValue" for each row in your data.
If you want to calculate the total sum of these values for each company, you can create a measure using SUMX and SUMMARIZE:
TotalSum = SUMX(
SUMMARIZE(
YourTableName,
YourTableName[Company]
),
[FixedValue] + [VariableValue]
)
Replace "YourTableName" with the actual name of your table. This measure calculates the sum of fixed and variable values for each company in your table.
You can then use this measure in your reports to display the total sum of values per company.
Please adapt the DAX formula to your specific data structure and requirements. If you have a different data model or need more specific guidance, provide more details about your data structure, and I can assist you further.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Hello,
Your opinion was important for me to finalize the formula.
Grateful.
You are wellcome.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |