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
Edgar_massa
Helper II
Helper II

Calculate a measure with a column

good night

Dear

I have a measure (accumulated 3 months) and a column (vl_cliente_1)

The measurement is calculating an accumulated sum and that's OK, however, I need to multiply the measurement by the column that corresponds to the vehicle's tariff rate, how can I do this?

 

 

Edgar_massa_0-1674169549123.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Edgar_massa ,

You can create another new measure as below and put this new measure to replace the original measure [Fat. Acumulado] onto the matrix visual...

New measure =
SUMX (
    VALUES ( dCalendario[Data] ),
    SUMX ( VALUES ( transaction_dw[companyID] ), [Fat. Acumulado] )
)

yingyinr_1-1674183876406.png

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

4 REPLIES 4
FreemanZ
Super User
Super User

hi @Edgar_massa 

try like:
Measure =
[accumulated 3 months] * MAX(TableName[vl_cliente_1])

@FreemanZ , 

 

I managed to create.

But there is a problem, now I can't modify the Total, using the HasOneValue function to add the measure in the visual, could you tell me?

 

Edgar_massa_0-1674181049305.png

The total brings the maximum envelope of the sum.

Anonymous
Not applicable

Hi @Edgar_massa ,

You can create another new measure as below and put this new measure to replace the original measure [Fat. Acumulado] onto the matrix visual...

New measure =
SUMX (
    VALUES ( dCalendario[Data] ),
    SUMX ( VALUES ( transaction_dw[companyID] ), [Fat. Acumulado] )
)

yingyinr_1-1674183876406.png

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Veeeeeery thanks, 

 

Edgar_massa_0-1674216126963.png

 

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.