code
5 TopicsDynamic Message using the system username
Hi there! i have this code which consists of making a greeting to the person who enter the dashboard, how do I get the system username printed on the message? like.. if the system is called "John Computer" I want the message to appear "Good afternoon John Computer, is that's possible? Welcome Text = VAR Hour = HOUR(NOW()) VAR Greeting = SWITCH( TRUE(), Hour >= 0 && Hour < 5, "Good Night", Hour >= 5 && Hour < 12, "Good Morning", Hour >= 12 && Hour < 18, "Good Afternoon", Hour >= 18 && Hour < 24, "Good Evening" ) RETURN Greeting & " Murilo"Solved1.8KViews0likes6CommentsCalculated column taking a count fixed to a country column
I would like to make a column or measure which takes my country column and return a number of houses in a certain colour. For instance I have 23 yellow houses in my dataset in US and 14 yellow houses in Poland A: Country column (e.g. Poland, United States) B: Colour of house (e.g. Red, Yellow) My wish i to get this out: COUNTRY (Count of yellow houses) United States (23) Poland (14) In tableau I would use a count and a FIX logic, i wonder if powerBI is able to make counts fixed to a specific country i a column1.9KViews0likes7CommentsThe CODE() Function - where is it?
I am wondering if I am going mad here...? π Trying to create a calculated column using the CODE() function, but it doesn't seem to exist! FirstCharCode = CODE(Family[GetString]) -- gives me an error - failed to resolve name 'CODE' and intellisense doesn't return it. So I look it up at - https://docs.microsoft.com/en-us/dax/code-function-dax It has not been withdrawn - anyone got any thoughts on this? I am using March 2020 PBI Desktop version. Thanks!Solved842Views0likes2Comments