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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
kewaynes
Helper IV
Helper IV

Unit of Measurement Conversions Calculated in Power Query or in DAX

I two reports that need to do unit of measurement conversions on several fields like weight, speed, volume, etc...

 

The reports have 4M records and 20M records, respectively. Because we are doing all these calculations in PQ, it of course increases the cost of our refreshes. But I know that is helps with report performance. However, the reports are only using a fraction of the total records (RLS) at any given time, so I'm assuming the report performance increase by doing the calculations in PQ is marginal. 

 

We are doing some testing to see what the best trade-off is, but is there any best practice guidance on this, especially considering reports that get into the +10M records?

1 ACCEPTED SOLUTION
Sergii24
Super User
Super User

Hi @kewaynes, usually different units of measure are attributes of item/product. Therefore, they are part of dimensional tables (or bridge tables in case you have multiple units of measure per single item).

Do you have 4 and 20 million of products? I suppose these tables are fact tables, that contain transactional information about your items. If it's so, you can build the following data model:

Sergii24_0-1727192494329.png

Then you create a measure in your report, that performs UoM conversion during the report execution.
I hope it helps! 🙂

View solution in original post

2 REPLIES 2
Sergii24
Super User
Super User

Hi @kewaynes, usually different units of measure are attributes of item/product. Therefore, they are part of dimensional tables (or bridge tables in case you have multiple units of measure per single item).

Do you have 4 and 20 million of products? I suppose these tables are fact tables, that contain transactional information about your items. If it's so, you can build the following data model:

Sergii24_0-1727192494329.png

Then you create a measure in your report, that performs UoM conversion during the report execution.
I hope it helps! 🙂

Yep. This makes sense. Doing the conversion in the DAX so that it executes at query time is always what I thought the best practice was but wanted to double-check.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.