Forum Discussion
Dax calc issue
Hi im having trouble making this dax calc work... could i get some help please
I just want to get an avg of these by dividing contracts by vehicles delivered however when added to the visuals it doesnt load - just an error message
Hi Anonymous ,
You can create a very simple measure if you just need to calculate the average.New_Avg = divide(sum(Vehicles[Contracts - New Volvo Products]), sum(Vehicles[Vehicles Delivered]),0)
As for the error message in your measure, please ensure that the datatype for both columns is numeric before you perform the divide operation.
This is your measure working fine on my pbixPENN again = divide (sumx(Vehicles,Vehicles[Contracts - New Volvo Products]- Vehicles[Vehicles Delivered]),SUMX(Vehicles,Vehicles[Vehicles Delivered]))
Please mark this answer as the solution if it resolved your issue.
Kind regards,
Rohit
2 Replies
- Shishir22
Solution Sage
Hello Anonymous ,
Request you to please share sample data in tabular format (not picture) and expected output so that we can help you.
Thanks.
- rohit_singh
Solution Sage
Hi Anonymous ,
You can create a very simple measure if you just need to calculate the average.New_Avg = divide(sum(Vehicles[Contracts - New Volvo Products]), sum(Vehicles[Vehicles Delivered]),0)
As for the error message in your measure, please ensure that the datatype for both columns is numeric before you perform the divide operation.
This is your measure working fine on my pbixPENN again = divide (sumx(Vehicles,Vehicles[Contracts - New Volvo Products]- Vehicles[Vehicles Delivered]),SUMX(Vehicles,Vehicles[Vehicles Delivered]))
Please mark this answer as the solution if it resolved your issue.
Kind regards,
Rohit