Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Cost / Value Transported Indicator

Hello, PBI community! Need help.
Need Help

Goal:
My objective is to make a division to obtain a 'Cost / R$ Transported' indicator always from my 'last period' or 'month to month' or 'daily'.

However, my 'Numerator' is a fixed monthly data ('DRE' [ORÇAMENTO]) from the query 'DRE' and my 'Denominator' is a data that varies daily ('fsg3342' [VLR MERC]).
'DRE' ORÇAMENTO'DRE' ORÇAMENTO'fsg3342' VLR MERC'fsg3342' VLR MERC

Problem:
I have only one release per month on 'DRE' [ORÇAMENTO] and several releases within a day on 'fsg' [VLR MERC].

What I managed to think, but still doesn't answer me:
Custo/R$ Transportado = CALCULATE(
DIVIDE(
SUM('DRE'[ORÇADO]),SUM('fsg3342'[VLR MERC]),0)
)

Could anyone help me?
Ty

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Have you created relationships between tables? I suggest linking both tables to Calendar table and then the measure will work. You may download the PBIX file.

122101.jpg

v-jingzhang_0-1608517927381.png

Kindly let me know if this helps.

Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Have you created relationships between tables? I suggest linking both tables to Calendar table and then the measure will work. You may download the PBIX file.

122101.jpg

v-jingzhang_0-1608517927381.png

Kindly let me know if this helps.

Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.