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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KatkaS
Post Patron
Post Patron

Comparing period, drill up in visual

Hello

I have a measure that is comparing data of the previous week with the current one, please see below.

The measure is working fine, but if I want to Drill up to see monthly data (I use Clustered column chart), I get wrong numbers.

I assumed that the monthly numbers would be summed up, but that is a wrong logic, right..?

 

And If I create new measure (same as below, but I replace week with month), the result is summing up all data, not comparing month by month..

 

To complete the information, I receive new file every week with updated data.

 

Change of status to CLOSED WEEK =
VAR __thisWeekCount = COUNTROWS(FILTER(ALL('Ann-Sofie Recruitments'),'Ann-Sofie Recruitments'[PERIOD]=MAX('Ann-Sofie Recruitments'[PERIOD]) && 'Ann-Sofie Recruitments'[Status - Copy]="2.8 Closed"))
VAR __lastWeekCount = COUNTROWS(FILTER(ALL('Ann-Sofie Recruitments'),'Ann-Sofie Recruitments'[PERIOD]=MAX('Ann-Sofie Recruitments'[PERIOD])-7 && 'Ann-Sofie Recruitments'[Status - Copy]="2.8 Closed"))
RETURN
__thisWeekCount - __lastWeekCount
 
Could someone have a look into this please..?
Thank you!
2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @KatkaS ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @KatkaS ,

In my tests, your MEASURE is fine, see below. If there is a problem using in your data, is it possible to provide the template data with the problem and the expected output. Remember to remove confidential data.

vluwangmsft_0-1647848319244.png

vluwangmsft_1-1647848450070.png

 

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


Best Regards

Lucien

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.