Forum Discussion
How to make the headers in a matrix visual dynamic
- 1 year ago
Hi mp390988 ,
Apologies, kindly try to below DAX.VAR CurrentYear = YEAR(TODAY())
VAR PreviousYear = CurrentYear - 1RETURN
DATATABLE("Label", STRING, {
{FORMAT(PreviousYear, "0000")},
{FORMAT(CurrentYear, "0000")},
{FORMAT(CurrentYear, "0000") & " vs " & FORMAT(PreviousYear, "0000")},
{"%"}
})
If this helps, please consider giving it a kudos and marking it as the accepted solution.
Thankyou mh2587 , rohit1991 , jaineshp for your responses.
Hi mp390988,
We appreciate your inquiry through the Microsoft Fabric Community Forum.
We would like to inquire whether have you got the chance to check the solutions provided by mh2587, rohit1991 , jaineshp to resolve the issue. We hope the information provided helps to clear the query.
Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.
Thank you.