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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PBIGuyL3
Frequent Visitor

Measure is not populating in table rows, only subtotal

Hello everyone!

I am in the process of creating a measure for each field that calculates the previous month's data.  It looks as follows: 


Clicks sa360 = Sum(clicks)
Clicks sa360 mom = Calculate([Clicks sa360], ParallelPeriod(Table.Date, -1, Month)

 

I am using a date table which connects to each fact table with a one to many relationship.  I am then creating a group on the Date field (Date (bins)) which groups the date's by month since that is the unit in ParallelPeriod.  When I created this the first time, everything loaded and I was able to see this:

Figure 1Figure 1

 

This is exactly what I wanted to see.  The problem is that the dataset structure needed to change from referencing multiple sources in thin report to building the same dataset in one place, no references (this is a thin report).  When I tried to recreate this on the new version, none of the measures were able to load in the table. 

2.PNG

 

I troubleshooted everything I could think of but cannot find a way or reason that the measures would populate inside the table on one report, but not on others.  Is this due to the new configuration of the dataset?  Everything seems to be the same in terms of DAX, relationships, and the info is coming from the same source.

 

Another thing to note:  When the date table has zero relationship with the fact table, both reports will show the total in every row of the table.  When the one to many relationship is made between the date and fact table, the first report loads everything and the second shows blank rows and a total.

3.PNG

 

Any help is appreciated, thank you!

2 REPLIES 2
Anonymous
Not applicable

Hi @PBIGuyL3 ,

 

The created measure performs the calculation of the formula in the filter context. The filter context is the context after the data is filtered after the filter is applied to the table. In short, "ParallelPeriod(Table.Date, -1, Month)" get the last month but the calculation range is filtered as the current row, which is this month. Therefore, the data of other months cannot be obtained and the measure returns a null value. You may consider to modify the formula use ALL() or ALLSELECTED() function to specify the calculation range. For example:

Clicks sa360 mom = Calculate([Clicks sa360], FILTER(ALL('table'), MONTH([date]) = MONTH(SELECTEDVALUE([date]))-1))

 

Best Regards,

Jay

amitchandak
Super User
Super User

@PBIGuyL3 , for time intelligence you should always prefer Date table and try like

 

Clicks sa360 mom = Calculate([Clicks sa360], ParallelPeriod('Date'[Date], -1, Month))
or
Clicks sa360 mom = Calculate([Clicks sa360], dateadd('Date'[Date], -1, Month))
or
Clicks sa360 mom = Calculate([Clicks sa360], datesytd(dateadd('Date'[Date], -1, Month)))

 

if that does not help

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw

https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.