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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hpatel24779
Helper II
Helper II

summarise max wait by team and snapshot date

Hi All,

 

I have a table with team, wait weeks and snapshot date. i have calculated the max wait week per team and month. i now want to work out the difference in max week from current month to previous month. then for the latest month, count how many teams have max wait of 0, greater than 0 and less than 0.

 

hpatel24779_3-1743737220452.png

this is my table and my measure is:

to calculate the current month max wait = 

current =
var startdate = FIRSTDATE('01 - Calendar'[Date])
var enddate = LASTDATE('01 - Calendar'[Date])
RETURN
CALCULATE(MAX('03 - Assessment Waits'[wait_weeks]),'03 - Assessment Waits'[Inserted On Date]='03 - Assessment Waits'[End of Current Month])
 
previous max wait = 
Previous =
var startdate = FIRSTDATE('01 - Calendar'[Date])
var enddate = LASTDATE('01 - Calendar'[Date])
RETURN
CALCULATE(MAX('03 - Assessment Waits'[wait_weeks]),'03 - Assessment Waits'[Inserted On Date]='03 - Assessment Waits'[End of Prev Month])
 
then to get the difference:
My measure = '00 - Measures'[current]-[Previous]
 
then to count how many are 0, >0 and <0
count = IF([My measure]>0,"Greater than 0",IF([My measure]=0,"Equals 0","Less than 0"))

 

however this isn't working as it should.

 

my finished table would look like this:

Max Wait WeekCount
Equals 03
Greater than 04
Less than 06

 

Can somebody please help as i have been trying to get this right for a day with no luck.

 

kind regards

Hetal

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @hpatel24779 

 

Please provide a workable sample data (not an image) and not in a pivoted format as in your image, your expected result from the same sample data and your reasoning behind. You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
v-aatheeque
Community Support
Community Support

Hi @hpatel24779 ,


We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.

If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!

Thank you!

Hi @hpatel24779 ,

If a community member's response addressed your query, please consider marking it as Accepted Answer and click Yes if you found it helpful.

If you have any further questions, feel free to reach out.
Thank you for being a valued member of the Microsoft Fabric Community Forum!

 

Hi @hpatel24779 ,

We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.

If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!

Thank you!

danextian
Super User
Super User

Hi @hpatel24779 

 

Please provide a workable sample data (not an image) and not in a pivoted format as in your image, your expected result from the same sample data and your reasoning behind. You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors