Forum Discussion

gluizqueiroz's avatar
gluizqueiroz
Icon for Resolver I rankResolver I
7 years ago

How to create a calculated column that is a value that will be filtered through the PowerBI Embedded

I have a normal table, wich have some real columns and 1 column is calculated. 
By now, I am making this calculated column like this:

 

CalculatedColumn = "12-25-2018"

But Im trying to make it dynamic. I receive that values from a FILTER that cames from Power BI Embedded, like the following code:

 

 

filters: [{
    $schema : 'http://powerbi.com/product/schema#basic',
    target : {
        table : 'Calendar',
        column : 'Date'
    },
    operator : 'In',
    values : [date],
    filterType : 1
}]

And on Power BI, I used the following DAX for calculated column:

 

 

 

CalculatedColumn = SELECTEDVALUE(Calendar[Date])

But the CalculatedColumn receives a blank, but the filter is correct on Power BI Embedded. 

Someone knows how to create a calculated column that receives a external value?

 

 

4 Replies

    • gluizqueiroz's avatar
      gluizqueiroz
      Icon for Resolver I rankResolver I

      Hey parry2k!

       

      So so man!
      Until now I set a default value on Power BI, but now I wanna that value is dynamic, how? The user is set a date outside my application and the dashboard loads with this value setted by user outside the application.
      Do you understand? Its a little bit hard to explain, if you have doubts, I will answer then.

      • parry2k's avatar
        parry2k
        Icon for Super User rankSuper User

        gluizqueiroz let's first clarify basic stuff, are you looking for solution for embed or powerbi desktop/service?