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

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.

Reply
Anonymous
Not applicable

Can't use numeric field as value in a visual (data from Azure Analysis Services)

Hello,

 

I have a model deployed on an Azure Analysis Server and I'm connected to it via LiveQuery using my Power BI desktop.

I have a numeric field that I've defined as Whole Number and It's summarize by Sum in SSDT :

valentin1402_0-1610640839404.png

I can use it to create a measure, it's working, I can sum all targets I have. But Power BI doesn't see this field as number, there is not Sigma symbol in front of the field and I can't use it as a value in a visual.

 

valentin1402_1-1610641019902.png

Here, I can't switch the Target into the Value placeholder.

valentin1402_2-1610641048217.png

However, Power BI seems to understand that is a numeric field as it's able to sort this field correctly:

valentin1402_3-1610641157390.png

 

I know that if I create a measure and sum this field it will work but I have a lot of them to be use as value in visuals, I don't want to have to create a measure every time I need a numeric field.

 

Really really would appreciate some help.

 

Kind regards,

 

Valentin

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

In the View Code feature, I had to change the value of the property discourageImplicitMeasures from True to False:

valentin1402_0-1611048547200.png

Thank you all for your time

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Are you connnecting to a multidimensional modeling?

It may has something  to this thread.

https://community.powerbi.com/t5/Desktop/Aggregation-Option-Issue-in-Power-BI-Desktop-with-Azure-Analysis/td-p/1124809 

 

Current model I connected is tabular modeling. In tabular modeling ,I used aggregate functions like SUM, COUNT, MIN, MAX, and DISTINCT COUNT to  aggregated values .I can also use the filed as 'values'  and  select the aggregate type I need to create aggregated values which may not supported in multidimensional modeling.

 

10.png

 

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi, 

 

Thank you for your reply. 

 

I'm using a Tabular model and I think Marco Russo has pointed what's causing this issue on his post: https://github.com/otykier/TabularEditor/issues/636

 

I think at some point I've created a Calculation group which disable by design the implicit aggregations.

 

I will try to remove any calculation groups.

 

Thanks again.
 

Anonymous
Not applicable

In the View Code feature, I had to change the value of the property discourageImplicitMeasures from True to False:

valentin1402_0-1611048547200.png

Thank you all for your time

PaulDBrown
Community Champion
Community Champion

@Anonymous 

Using measures instead of implicit column aggregations is widely considered a best practice. (I never use implicit aggragations)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can check current data format of the field in the model view of the report to ensure that it is  regarded as ‘whole number’ and summarize by  'sum'  .

8.png

 

Have you turned on the option of 'Type detection'?

9.png

 

Best Regards,
Community Support Team _ Eason

 

Anonymous
Not applicable

Hello , thank you for your reply, yeah it's already activated, and Power BI sees it is a whole number:

valentin1402_0-1610975316969.png

Any other thoughts?

 

thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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