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.
I can't find a lookup for the values in this field, can anyone point me in the right direction? Thanks!
Solved! Go to 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:
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
Not sure if understand the issue well. Do you want to detect column type?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Yes, exactly. This has numeric codes, I'd like to know what they map to.
To detect column type please use metadata.type.numeric
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
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"?
As seen here in the PrimitiveValueEncoding class https://github.com/deldersveld/PowerBI-visuals/blob/master/src/Clients/VisualsData/semanticQuery/pri...
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:
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.