Forum Discussion

Azar503's avatar
Azar503
Regular Visitor
5 years ago

Need help for DAX measure

Hi,

I need help in calculatind date measure.
I have Date Slicer that takes up dates From and To.
Ex - From 3/Sep/2019 To - 3/Sep/2021


1. Calculate the no of years for the given Date Range
No of Months is 48 and when divided by 12 it is 4 (no of years)

Ex:
FromToNo of MonthSplit
01-Sep-1930-Sep-23484


Expected Out Put in matrix
NameSep-19-sep  20Sep-20 to sep 21Sep-21 to sep 22Sep-22 to sep 23
A23203533
b34403445
c44505540
d34254450



If the To Date is 31 0ct 23, we need the column header to show in months in Last column as highligted.

NameSep-19-sep 20Sep-20 tosep 21Sep-21 to sep 22Sep-22 to sep 2331-Oct-23
A2320353333
b3440344545
c4450554040
d3425445050

Row : Name
Column: Date it will be split accordingly by selected Date filters.
Vales : Sales amount

Please help me to achieve this requirement.


Thanks and Regards,
Azar.

------------------------------
Mohamed Azarudeen.

------------------------------
 
 

 

1 Reply

  • v-easonf-msft's avatar
    v-easonf-msft
    Icon for Community Support rankCommunity Support

    Hi, Azar503 

    Not quite sure what you need, can you explain more specifically the logic of the measure you need to create? Please provide your original data sheet for research.

     

    Best Regards,
    Community Support Team _ Eason