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...
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)