Kazlik
than you for your help
your way work only if i don't use slicer
if i select another year from slicr the maxmium month doesn't change
i make sample data here
[TABLE="width: 143"]
<colgroup><col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="65" style="width: 49pt; mso-width-source: userset; mso-width-alt: 2377;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <tbody>[TR]
[TD="width: 51"]Year[/TD]
[TD="width: 65"]Month[/TD]
[TD="width: 74"]Sales[/TD]
[/TR]
[TR]
[TD="align: right"]2010[/TD]
[TD="align: right"]1[/TD]
[TD] 6,807,039 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"] 9,775,695 [/TD]
[/TR]
[TR]
[TD="align: right"]2010[/TD]
[TD="align: right"]3[/TD]
[TD] 9,982,864 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"] 834,658 [/TD]
[/TR]
[TR]
[TD="align: right"]2010[/TD]
[TD="align: right"]5[/TD]
[TD] 5,026,898 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"] 1,060,560 [/TD]
[/TR]
[TR]
[TD="align: right"]2010[/TD]
[TD="align: right"]7[/TD]
[TD] 8,970,977 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"] 1,727,497 [/TD]
[/TR]
[TR]
[TD="align: right"]2010[/TD]
[TD="align: right"]9[/TD]
[TD] 313,260 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"] 8,549,792 [/TD]
[/TR]
[TR]
[TD="align: right"]2010[/TD]
[TD="align: right"]11[/TD]
[TD] 880,182 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2010[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent"] 7,659,786 [/TD]
[/TR]
[TR]
[TD="align: right"]2011[/TD]
[TD="align: right"]1[/TD]
[TD] 928,556 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"] 9,674,966 [/TD]
[/TR]
[TR]
[TD="align: right"]2011[/TD]
[TD="align: right"]3[/TD]
[TD] 9,014,160 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"] 5,616,727 [/TD]
[/TR]
[TR]
[TD="align: right"]2011[/TD]
[TD="align: right"]5[/TD]
[TD] 7,457,469 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"] 9,799,451 [/TD]
[/TR]
[TR]
[TD="align: right"]2011[/TD]
[TD="align: right"]7[/TD]
[TD] 8,058,620 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"] 5,069,354 [/TD]
[/TR]
[TR]
[TD="align: right"]2011[/TD]
[TD="align: right"]9[/TD]
[TD] 9,814,394 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"] 6,631,784 [/TD]
[/TR]
[TR]
[TD="align: right"]2011[/TD]
[TD="align: right"]11[/TD]
[TD] 4,355,254 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2011[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent"] 9,031,598 [/TD]
[/TR]
[TR]
[TD="align: right"]2012[/TD]
[TD="align: right"]1[/TD]
[TD] 4,516,196 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"] 5,761,589 [/TD]
[/TR]
[TR]
[TD="align: right"]2012[/TD]
[TD="align: right"]3[/TD]
[TD] 5,553,105 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"] 3,761,657 [/TD]
[/TR]
[TR]
[TD="align: right"]2012[/TD]
[TD="align: right"]5[/TD]
[TD] 2,000,693 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"] 2,174,616 [/TD]
[/TR]
[TR]
[TD="align: right"]2012[/TD]
[TD="align: right"]7[/TD]
[TD] 4,044,175 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"] 2,719,671 [/TD]
[/TR]
[TR]
[TD="align: right"]2012[/TD]
[TD="align: right"]9[/TD]
[TD] 7,660,405 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"] 9,107,351 [/TD]
[/TR]
[TR]
[TD="align: right"]2012[/TD]
[TD="align: right"]11[/TD]
[TD] 1,042,729 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2012[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent"] 734,114 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]1[/TD]
[TD] 5,560,800 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"] 8,821,386 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]3[/TD]
[TD] 7,178,885 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"] 5,995,635 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]5[/TD]
[TD] 5,736,628 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"] 2,778,949 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]7[/TD]
[TD] 1,853,831 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"] 2,982,213 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]9[/TD]
[TD] 1,710,880 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"] 9,537,009 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]11[/TD]
[TD] 4,654,480 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent"] 2,222,256 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]1[/TD]
[TD] 7,905,759 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"] 4,599,453 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]3[/TD]
[TD] 1,607,495 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"] 8,432,738 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]5[/TD]
[TD] 3,551,566 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"] 2,502,886 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]7[/TD]
[TD] 2,604,003 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"] 2,519,364 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]9[/TD]
[TD] 7,258,019 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"] 1,670,325 [/TD]
[/TR]
[TR]
[TD="align: right"]2013[/TD]
[TD="align: right"]11[/TD]
[TD] 1,934,660 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2013[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent"] 8,094,743 [/TD]
[/TR]
</tbody>[/TABLE]
thanks