I am trying to redo an analytic which is already there in Spotfire to Power BI. There is calculated column:
= DenseRank(If([Assessed]="Yes",[Date],Null),"desc",[Application Content Id])
Can anyone help me with converting this calculated column to Power BI?
You can try the following formula:
Rank = RANKX(Table,IF(Table[Assessed]="Yes",Table[Effective Date],BLANK()),Table[Application Content ID],DESC,Dense)
Looks like you are closing the brace before declaring the rank as dense. Give the above calculation a try and let me know if the issue persists.
Related
Is there a way to replicate the formula below in excel onto a Power BI measure?
I want for each company to return the total number of countries it applied for.
Many thanks in advance
Nasos
I have a measure in Power BI. How to bring the measure total to rows in power BI ?
You have to use ALL table function to compute this:
YourNewMeasure = SUMX(ALL(YourTableName),YourTableName[Quantity])
Balaji has rightly given the formula to get the total in each row, just wanted to add that now you have to create a column and use the above formula instead of a measure.
I have the following table in Power BI Desktop table visualization:
I don't like that the same dates are repeated over many rows, and would like to show each day just once. Here's what I mean, this is made with Tableau:
How can I do this in Power BI? Thanks!
I found the answer here: how to group the values in power bi?. It's not as pretty, but it works.
In short:
1: changed the visualization from Table to Matrix
2: moved both the date and the middle column to the "Rows" field of the Matrix
hi I am trying to redo an analytic which is already there in Spotfire to Power Bi. There is calculated column Max([ Date]) over ([ContentId]) .
Can anyone help me with converting this calculated column in Power Bi
You could use something similar to the following calculation:
Calc_Column = CALCULATE(MAX(Table[Date]),ALLEXCEPT(Table,Table[ContentID]))
Replace "Table" with the name of your table and you should be good to go. Hope this helps.
I have a power bi report with live connection to the SSAS cube. I have a numeric column which I wanted to convert to text using DAX, since its a live-conection i cannot change this on power bi end. is there a way ?
You can use the format function in dax,
For example you can add a new column as the following example:
New_Column = FORMAT(Table1[NumericColumn];"General Number")
Get this example from the source in Pre-Defined Numeric Formats for the FORMAT Function
Hope this can help you!