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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MattKarriker2
Helper II
Helper II

Fixed length decimal data type in Databricks

Good Day Forum

I am in the process of moving our Power BI reporting data sources from Azure Synapse to Azure Dtabricks.  Our models are composite model meaning we have direct query and and in-memory aggregation tables to help support our used experience.  To produce the models we followed Microsofts guidance to convert floating point decimals to fixed length decimals.  This is to reduce the oversize of the model on the in-memory tables.  However to make aggregation awareness work the data types of the direct query columns and the imported aggregate table need to match.  In Synapse this is no issue.  As the query engine can easily convert decimals to money in Synapse.  However there is no money/currency type available in databricks.  Converting the direct query column from floating point decimal to fixed length decimal on databricks sources fail reporing an error with query folding.  The real issue is Power BI is sending a Cast(Field as Money) to databricks and engine does not know how to handel it.  If I leave the direct query fields as floating and change the imported tables to fixed aggregation awareness does not work due to mismatched data types.  
Does anyone have experience converting floating point decimals to fixed length decimals using databricks as the source?  

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.