Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
heygau
Helper I
Helper I

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors