I use dataverse as POWER BI data source. But i can not get human-readable value from optionset even use direct query model when i get data from dataverse.
The table account has column key in dataverse, I get data both use import and direct query,but both of the two model, the column keyname are empty,but the column key like value like 899xxxxxx
Thanks very much!
Related
I am trying to take the filter context from my PBI dashboard to a Power App Edit Form. The scenario is as follows:
I have two tables:
Comments_Table:(empty until write back data is submitted)
Salesperson
Comments
Date
Value
Salesperson_Table:
Salesperson
Information
Salesperson1
1
Salesperson2
2
The Power App should allow users to Write Back data for the following columns to the Comments_Table:
Comments (free text)
Date (date)
Value (free text)
Every new entry should be a new row in the table.
The selected Salesperson should also be written back but should be set by the users' selection in a PBI filter. For instance, in the dashboard, users will be forced to select a unique salesperson, and this should filter the Power App.
I currently have two issues. I have set up a Form that makes a LookUp on a gallery which references the Salesperson table via the PowerBIIntegration.Data. Salesperson is in the form as a view text only item.
I am only able to filter to values that already exist in the Comments table (I prefilled some dummy rows) - it does not currently take the value from the Salesperson table...
Every new entry in the Edit Data Form overwrites the previous entry
for that salesperson. It should add a new of data instead...
Any ideas on how to proceed would be greatly appreciated...
I try to use Dataverse as the datasource of power BI. In the Dataverse Table a column [Result] is Choices columns which means users can select multiple items from the list. In power BI side after i import data from dataverse i only can get integer values, which are comma separated about the column. but Choice columns which provide a drop-down list of items to a user to make a single selection can presented as two columns to show both the unique value, and the display item value,it works fine.
May i know how to get the display value for the Choices columns?
Thanks so much!
I am stuck while dynamically forming a new column based certain WHERE clause from another Table in PowerBi. To give more details, let's say I have a table with item numbers associated with a Customer Name. In another table, I have to add a new column, which will dynamically add the item numbers associated with a particular customer and append as a query parameter to a base url.
So, my first table looks like this:
The second table that I want is this:
The query parameter value in the URL, has to be dynamically based on a SELECT query with a WHERE clause and pick up the ItemNumbers using the Customer field which is common between both. So, how can this be done in PowerBi? Any help would be really appreciated :)
I have one table in my model "TableRol" if I want to summarize my Date as the string I can use CONCATENATEX;
URL = CONCATENATE(CONCATENATE("http:\\mysite.com\parametersHere\getitem?='",CONCATENATEX(VALUES('TableRol'[Date]), 'TableRol'[Date],";")),"'")
I have a table logs with these columns:
timestamp sessionID elementID value
The logs table is partitioned on the timestamp column.
I create a materialized view out of it:
create materialized view X
partition by date(new_timestamp)
as
select min(timestamp) as new_timestamp, sessionID, elementID, sum(value) as sumvalue
from logs
group by sessionID, elementID
I am getting an error "Partitioning column of the materialized view must either match partitioning column or pseudo-column of the base table, or be a TIMESTAMP_TRUNC over it."
BigQuery doc says the only way to partition the materialized view is to use exactly the same partition column of the main table, even the min() operator on the column is not accepted. Do you know how I could achieve the result I want despite this limitation?
A fresh look on your question gave me a simple answer: Use timestamp directly!
Indeed, you will store in the materialized view only the min(timestamp). So, the partitioning/sharding of your data will be done by timestamp, min or max, it's not the purpose!
I am trying to replicate the below dax calculation which worked in Power BI but throwing error in SSAS tabular model.
Account Warranty Count = CALCULATE(COUNT(dds_repairlogs[Repair Logs]),RELATEDTABLE(dds_repairlogs),filter(dds_repairlogs,dds_repairlogs[Savings Type 2] = "Warranty"))
The error I get is count doesn't work with text fields. However the field Repair Logs in Count function is kind of uniqueidentifier. Does anyone have any suggestions on how to replicate the above measure in SSAS tabular model.
Adding a little to Olly's answer:
The COUNT function counts rows that contain Numbers, Dates, or Strings - but text values are only counted if they can be translated into a number.
Uniqueidentifier is not a supported data type in SSAS Tabular models, and therefore your uniqueidentifier values are most likely saved as Texts (i.e. Strings).
Changing COUNT(dds_repairlogs[Repair Logs]) to COUNTROWS(dds_repairlogs) in your formula should fix the issue. COUNTROWS counts all rows in a table, rather than numbers in a column.
The COUNT function only counts numbers. Your error message indicates the [Repair Logs] field contains non-numeric values.
Try replacing COUNT with COUNTROWS