The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I'm customizing a Treemap visual for my crypto trading analysis. I'm using the ticker name as the main category and rsi "average" as the values.
My problem is that RSI is using the average, my requirement is to use the latest value stored in the column but there is nothing like "use last value" in the dropdown. How can I achieve it?
Solved! Go to Solution.
Hi @czetsuya ,
You can create a measure as below and replace the average of field [rsi] to put this measure onto the treepmap visual...
Measure =
VAR _selticker =
SELECTEDVALUE ( 'Table'[ticker] )
VAR _maxdate =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ticker] = _selticker )
)
RETURN
CALCULATE (
MAX ( 'Table'[rsi] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[ticker] = _selticker
&& 'Table'[Date] = _maxdate
)
)
If the above one can't help you, please provide some raw data in your table (exclude sensitive data) with Text format, your treemap Fields settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @czetsuya ,
You can create a measure as below and replace the average of field [rsi] to put this measure onto the treepmap visual...
Measure =
VAR _selticker =
SELECTEDVALUE ( 'Table'[ticker] )
VAR _maxdate =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ticker] = _selticker )
)
RETURN
CALCULATE (
MAX ( 'Table'[rsi] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[ticker] = _selticker
&& 'Table'[Date] = _maxdate
)
)
If the above one can't help you, please provide some raw data in your table (exclude sensitive data) with Text format, your treemap Fields settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Thanks. Your solution works for me.