cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
heygau
Frequent Visitor

Sale Week Number

HI, 


I need Dax help foThree Cards Visuals 

Based on Year and Month SlicerScreenshot (116).png
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)

 

Screenshot (114).png

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @heygau ,

Please have a try.

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)

 

How to Get Your Question Answered Quickly 

 

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.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
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
https://www.linkedin.com/in/excelenthusiasts/
v-rongtiep-msft
Community Support
Community Support

Hi @heygau ,

Please have a try.

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)

 

How to Get Your Question Answered Quickly 

 

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.

Helpful resources

Announcements
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.