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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
raphazzz
Helper I
Helper I

Help: Matrix Excludes December in Transaction Analysis

Hello friends,

I have a table of transactions, and when building a matrix, the calculation omits the month of December.

I started a new file with only the fact table and two dim tables and the relationship between the tables is 1 to * from the dim to fact table.

raphazzz_1-1701828498436.png

 

When I count the rows and set the column with the calendar month, I obtain the count of all transactions for all 12 months.

raphazzz_2-1701828524588.png

 

However, when I use a different measure that counts rows based on a specific condition, it does not include the month of December.

raphazzz_3-1701828543030.png

I tried two different approaches to the measures a both are not including december:

A =
VAR A =
CALCULATE (
COUNTROWS ( 'Deferment Data' ),
FILTER ( 'Deferment Data', 'Deferment Data'[Deferment] = "Defer" )
)
VAR B =
CALCULATE (
COUNTROWS ( 'Deferment Data' ),
FILTER ( 'Deferment Data', 'Deferment Data'[Deferment] = "No Defer" )
)
RETURN
DIVIDE ( A, B )

 

B =
VAR A =
CALCULATE (
COUNTROWS ( 'Deferment Data' ),
'Deferment Data'[Deferment] = "Defer"
)
VAR B =
CALCULATE (
COUNTROWS ( 'Deferment Data' ),
'Deferment Data'[Deferment] = "No Defer"
)
RETURN
DIVIDE ( A, B )


In the database, the month of December is present, and I have verified that the same conditions applied in the measure also include December.

 

raphazzz_4-1701828772518.png

 

Any suggestions, this is driving me crazy.

 

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors