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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rohanghule12
Frequent Visitor

Dax for start quarter week in fiscal year to selected week

I have relative week numbers, and through scliers I have selected relative week. I want total sum of weeks from first week of quarter to selected week.

 

Please consider this is a fiscal week from Feb to Feb, and data is aggregate on weekly there is no any calendar table.

 

2 REPLIES 2
rohanghule12
Frequent Visitor

1. I have data of sales for every week. I am using fiscal calendar which start from Feb and ends at Feb.

Data contains Fiscal Quarter, Fiscal week, Fiscal Week Relative and Total sales. (Shown in attached table)

Fiscal week Relative column contains from today to previous week's.like current week has -1, last week has -2, last to last week has -3 etc.

2. Filters - I have one scliers which has Fiscal week Relative. And user has selected week -13.

3. Expected output - I want sum of QTD of selected week.

- User has selected week -13, and quarter starts from week -11. So I want sum of sells from week -11,-12 and -13 which is my selected week from Slicer.

- User can select any week so I want QTD from start of week to selected week.

IMG_20230707_230803.jpg

 Please suggested Dax to calculate Total sells of QTD (start week of quarter to selected week). Solution should be dynamic user can select any week.

Greg_Deckler
Super User
Super User

@rohanghule12 Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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