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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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