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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rdegr
Helper I
Helper I

category.source.type.underlyingType

I can't find a lookup for the values in this field, can anyone point me in the right direction?  Thanks!

1 ACCEPTED SOLUTION

The `category.source.type` has to values that determine the real type if you are really interested: the `primitaveType` and the `extendedType`.

 

Both are enums and a pretty accurate definition is available at:

https://github.com/avontd2868/PowerBI-visuals/blob/c0278829a474f2b3f4dec1c8f0adb41fc4814fbf/src/Clie...

https://github.com/avontd2868/PowerBI-visuals/blob/c0278829a474f2b3f4dec1c8f0adb41fc4814fbf/src/Clie...

 

In case of the screenshot Ignat: the primitiveType is 3 (`Double`) and extendedType 259 (`Double`).

And to determine the difference between a `Double` and `Decimal` is the extendedType property: `259` vs `258`

 

-JP

View solution in original post

6 REPLIES 6
v-viig
Community Champion
Community Champion

Not sure if understand the issue well. Do you want to detect column type?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Yes, exactly.  This has numeric codes, I'd like to know what they map to.

v-viig
Community Champion
Community Champion

To detect column type please use metadata.type.numeric

 

image.png

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Other parts of the API appear to distinguish "double" from "decimal".  So that "valueEncoded" for a numeric might be digits followed by an M or a D (or L for integer).  How to distinguish "double" from "decimal"?

The `category.source.type` has to values that determine the real type if you are really interested: the `primitaveType` and the `extendedType`.

 

Both are enums and a pretty accurate definition is available at:

https://github.com/avontd2868/PowerBI-visuals/blob/c0278829a474f2b3f4dec1c8f0adb41fc4814fbf/src/Clie...

https://github.com/avontd2868/PowerBI-visuals/blob/c0278829a474f2b3f4dec1c8f0adb41fc4814fbf/src/Clie...

 

In case of the screenshot Ignat: the primitiveType is 3 (`Double`) and extendedType 259 (`Double`).

And to determine the difference between a `Double` and `Decimal` is the extendedType property: `259` vs `258`

 

-JP

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors