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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
donquijote
Advocate IV
Advocate IV

Direct Query, simple unit conversion scenario

I have a very simple unit conversion problem that I haven't been able to solve in a Direct Query dashboard.

 

Table 1: Has 2 columns, date and value.

 

I would like to be able to display the value column in different units, selected by the user (for example via slicer?)

 

I created Table 2 with two columns: UnitName and ConversionFactor

 

The value I want to be able to display in my visuals is Table1[value] * Table2[ConversionFactor]

 

However given there is no relationship between the tables i cannot use RELATED to do this calculation and so far I haven't found an alternative.

 

Open to other ways to achieve this result in DirectQuery.

 

Thanks

1 ACCEPTED SOLUTION
donquijote
Advocate IV
Advocate IV

This can be solved using a simple calculated measure:

MyMeasure = AVERAGE(Table1[Value]) * AVERAGE([Table2[ConversionFactor]])

When user selects the Table2[UnitName] in the slicer, the visualization of MyMeasure against Table1[Date] updates the converted value correctly in Direct Query.

View solution in original post

1 REPLY 1
donquijote
Advocate IV
Advocate IV

This can be solved using a simple calculated measure:

MyMeasure = AVERAGE(Table1[Value]) * AVERAGE([Table2[ConversionFactor]])

When user selects the Table2[UnitName] in the slicer, the visualization of MyMeasure against Table1[Date] updates the converted value correctly in Direct Query.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors