Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |