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

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

Reply
rubymaya
Helper II
Helper II

How do we show Pivot Column, but exclude it from calculation ?

Hi Experts,

I have pivot showing date, WW and all the values and a DAX to calculate the difference between todays value to previous day value.

All working, except for the first day of week (Monday) it doesnt count the Sunday on the previous week when I drag WW column. For sure it is okay if i dont show ww column.

Capture.JPG

 

Dax to get prev day value using :

PrevDay NonContinuos = CALCULATE( SUM(
Fact_tbl1_INOUT[QTY]),FILTER(ALL(Fact_tbl1_INOUT), Fact_tbl1_INOUT[REPORT_DATE] = MAXX(
FILTER(ALL(Fact_tbl1_INOUT),Fact_tbl1_INOUT[REPORT_DATE] < MAX( Fact_tbl1_INOUT[REPORT_DATE])) , Fact_tbl1_INOUT[REPORT_DATE])))

 

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Something appears to be missing. Maybe change your WEEKNUM third parameter to start weeks on a different day? 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



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hello @Greg_Deckler ,

In the WW column, I used '2' parameter to start week with Monday. Doesnt matter which day it start the week, when the week is changing, it doesnt put into account the previous day because the previous day is in previous week. So the values did not minus yesterday value. 

The only way to resolve this for now is to remove WW column from the matrix so it can calculate normally without considering WW as category. But I need to show it. Cosmetic. 

 

WW column as : 

WW = FORMAT(WEEKNUM('Dim Date'[REPORT_DATE],2),"00") & " " & YEAR('Dim Date'[REPORT_DATE])

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.