Custom Fields in Semantic Models

  • 16 February 2023
  • 5 replies
  • 57 views

Userlevel 3
Badge +1

I’ve created a custom field in a semantic model table:

 

 

But in PBI using a Mixed storage model, it doesn’t works, but if I create the column directly in PBI desktop, it works:

 

 


5 replies

Userlevel 6
Badge +5

Hi @rvgfox 

I cannot seem to recreate the issue on my end. Please see this video https://use.vg/Sv09CV and details of the custom column below. Am I doing anything differently than you?

 

Userlevel 3
Badge +1

Hi @Christian Hauggaard in the video I don’t see how is the column defined...

Userlevel 6
Badge +5

but you can see the custom column in the screenshot above? or is there something else you would like me to show regarding the column?

Userlevel 3
Badge +1

Here you can see a gif with the test:

 

Userlevel 6
Badge +5

It appears to be showing you an error for the sum of Column1, before you change to direct query. So it appears the issue is not related to Direct Query or mixed mode storage.

In order to troubleshoot further, let’s try to solve the error for regular PBI dataset connection (i.e. no changed in storage mode)

Can you try to click on "see details" on the error message "can't display the visual. see details" in Power BI? What is the full error message?

If I try to implement a similar type of expression that you have for your column


I get an error

This is because I have to remove the table name “Currency” in the expression as shown below.

    

Once I remove the table name, the column is displayed in Power BI without error

Reply