Forum Discussion
Naveen29
4 years agoHelper II
DAX help
I would like to display the data in the matrix table as follows. The measure values should display the YTD vs PYTD for country level, and loc wise it should be only YTD value. How to achive this?...
Samarth_18
4 years agoCommunity Champion
Hi Naveen29 ,
Have you tried below code:-
Measure = [YTD]&" "&[PYYTD]Note:- [YTD] and [PYYTD] represnt your measure for particular calculation.
Thanks,
Samarth
- Syndicate_Admin4 years agoAdministrator
this is fine. How to show only YTD in the values
- Samarth_184 years agoCommunity Champion
Syndicate_Admin For that you dont need to create a seperate measure, you can directly drag YTD measure.
- v-easonf-msft4 years agoCommunity Support
Hi, Naveen29
If you want to display the YTD vs PYTD for country level and YTD value for loc wise, you can create measure as blow to replace the value:
Measure1 = IF ( ISFILTERED ( Table1[loc] ), [YTD], [YTD] & "VS" & [PYTD] )Best Regards,
Community Support Team _ Eason- Naveen294 years agoHelper II
v-easonf-msft I tried this DAX even though it is giving or considering only one measure in the matrix table column.