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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AndriyK
Helper II
Helper II

Issue with setting data type for measures

hello,

 

we got a SSAS tabular on SQL server 2019 on prem which is accessed from Power BI service.

 

To develop ssas models i'm using Visual Studio and Tabular Editor 2, to deploy changes from model file to ssas database i'm using Power BI ALM Toolkit.

 

the issue:
when i'm comparing the model file with ssas database on the server using the ALM tool kit, the measures in the model file shown with no data type, but the measures in the db shown with a data type variant. and it stays this way after i promote the changes from the model file to db.

so, every time i compare the file to db, i see all the measures in the model that are not the same as they have no data type in the file and variant data type in the db and these measures are shown as changes.

i've tried to set the data type in the model file using the Tabular Editor, but looks like this option is disabled, even i've enable the experimental features in preferences.

 

could you please let me know if it is possible to set the measure data type in the model file.

and if it is possible, how i can do it.

 

thank you,

Andriy

 

AndriyK_1-1734731382279.png

 

 

AndriyK_0-1734731208785.png

 

 

 

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @AndriyK - SSAS Tabular models on SQL Server 2019 do not natively support setting an explicit data type for measures. Instead, measures default to the variant data type in the SSAS database. This behavior causes discrepancies when comparing your model file with the SSAS database using tools like Power BI ALM Toolkit, as the model file does not explicitly include data types for measures.

 

Even with Tabular Editor 2.x, which allows editing SSAS models, it does not allow you to explicitly set a data type for measures because SSAS doesn’t support it.The "Allow unsupported Power BI features (experimental)" option in Tabular Editor is primarily for models targeting Power BI datasets or newer versions of SSAS. It doesn’t enable features unsupported by your current SSAS version.

 

Alternatively, focus on deploying models directly to Power BI datasets in the cloud, which leverage the latest Tabular model features.

 

Hope these details helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

AndriyK
Helper II
Helper II

 

*** Update 2025-01-14 ***

the issue was fixed in ALM Toolkit v.5.1.11 
https://github.com/microsoft/Analysis-Services/releases 
Big thanks to Christian Wade and ALM toolkit dev team for resolving it so promptly!  

*********

Hello,


i've found the solution and posting it in case anyone expiriencing the same issue. found it on the Power BI ALM toolkit github page:
i've switched to use TMSL in Options and now it works fine and ignores measures data types when comparing the models.

 

AndriyK_0-1734821844987.png

 

  

View solution in original post

3 REPLIES 3
AndriyK
Helper II
Helper II

 

*** Update 2025-01-14 ***

the issue was fixed in ALM Toolkit v.5.1.11 
https://github.com/microsoft/Analysis-Services/releases 
Big thanks to Christian Wade and ALM toolkit dev team for resolving it so promptly!  

*********

Hello,


i've found the solution and posting it in case anyone expiriencing the same issue. found it on the Power BI ALM toolkit github page:
i've switched to use TMSL in Options and now it works fine and ignores measures data types when comparing the models.

 

AndriyK_0-1734821844987.png

 

  

AndriyK
Helper II
Helper II

hi @rajendraongole1 ,

thanks a lot for your response and explanations!

 

rajendraongole1
Super User
Super User

Hi @AndriyK - SSAS Tabular models on SQL Server 2019 do not natively support setting an explicit data type for measures. Instead, measures default to the variant data type in the SSAS database. This behavior causes discrepancies when comparing your model file with the SSAS database using tools like Power BI ALM Toolkit, as the model file does not explicitly include data types for measures.

 

Even with Tabular Editor 2.x, which allows editing SSAS models, it does not allow you to explicitly set a data type for measures because SSAS doesn’t support it.The "Allow unsupported Power BI features (experimental)" option in Tabular Editor is primarily for models targeting Power BI datasets or newer versions of SSAS. It doesn’t enable features unsupported by your current SSAS version.

 

Alternatively, focus on deploying models directly to Power BI datasets in the cloud, which leverage the latest Tabular model features.

 

Hope these details helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.