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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors