According to your description, the visual in Power BI show differernt in Excel .
If you put the measure on the visual , you need to check if the dax code is right .
If you put the calculated column on the visual , you need to check the aggregation method for this column.
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly