Forum Discussion
N-msft
2 years agoFrequent Visitor
Use dynamic column names in calculation groups
Hi, I am using calculation groups to show a matrix visual that contains measures on both axes, i.e., on rows & columns. TodaysValue YesterdaysValue DayBeforeYesterdayvalue MTD for C...
Anonymous
2 years agoNot applicable
Hi N-msft ,
I created some data:
Are you considering using measure directly to display the data you want:
Measure =
var _day=TODAY()
var _lastday=TODAY()-2
return
IF(
MAX('Table'[Date]) >= _lastday &&MAX('Table'[Date])<=_day,
SUMX(
'Table',[Value]),BLANK())
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.