cancel
Showing results for
Did you mean:
Frequent Visitor

## Sale Week Number

HI,

I need Dax help foThree Cards Visuals

Based on Year and Month Slicer
Need to Show  (Not able to write a Dax to show Cureent Sale Week Number on Card)

1) Current Financial SaleweekNumber (Present )
2) First Financial SaleWeek Munber (MInimum)

3) Last  Financial SaleWeek Number (Maximum)

1 ACCEPTED SOLUTION
Community Support

Hi @heygau ,

Current Financial SaleweekNumber (Present )

``````sales weeknum=
calculate(max(salesweennumber),filter(all(table),table[date]=today()))``````

First Financial SaleWeek Munber (MInimum)

``minx=minx(allselected(table),salesweeknumber)``

Last  Financial SaleWeek Number (Maximum)

``maxx=maxx(allselected(table),salesweeknumber)``

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 REPLIES 2
Super User

Hi,

Try these measures

Week number of today = Maxx(Filter(Calendar,Calendar[Date]=today()),Calendar[Financial Sales week])

This week sales = calculate(sum(Data[Sales]),filter(Calendar,Calendar[Financial Sales week]=[Week number of today]))

Hope this helps.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Community Support

Hi @heygau ,

Current Financial SaleweekNumber (Present )

``````sales weeknum=
calculate(max(salesweennumber),filter(all(table),table[date]=today()))``````

First Financial SaleWeek Munber (MInimum)

``minx=minx(allselected(table),salesweeknumber)``

Last  Financial SaleWeek Number (Maximum)

``maxx=maxx(allselected(table),salesweeknumber)``

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.