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
msmays5
Helper II
Helper II

Some Values from Disconnected Table Missing in Matrix

Hi all,

 

I have a disconnected table (PeriodCount) with values 0 to 30 in column [PeriodLength], which I have displayed across the columns of a matrix.

 

Additionally, I have a volume table that has hourly data for the latest 24 hours and daily data for the latest 30 days. In this table, there is a column denoting whhether the data is from 24h or 30d.

 

Via a slicer, I control whether I want to display 24h data or 30d data. When I choose the 30d data, all the columns display. However, when I choose 24h, every 3rd column starting at 2 is missing (2, 5, 8, 11, 14, etc.). The numbers look correct for all of the visible [PeriodLength], but I don't understand why every 3rd one is missing.

 

Here is my formula for the measure:

ClosePriceNPeriodsAgo =
VAR PeriodLength = SUM ( PeriodCount[PeriodLength] )
VAR PeriodDivsior= IF ( SELECTEDVALUE ( tblVolume[VolumeType] ) = "24h", 24, 1 )
VAR SubtractTime = PeriodLength / PeriodDivsior
VAR LatestLocalTime = MAX ( tblVolume[LocalTime] )
VAR DesiredTime = LatestLocalTime - SubtractTime
RETURN
CALCULATE (SUM ( tblVolume[closeSharePrice] ), tblVolume[LocalTime] = DesiredTime)

 

Any help would be greatly appreciated.

2 REPLIES 2
amitchandak
Super User
Super User

Can you share sample data and sample output. If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

@amitchandak 
Please let me know if you can't view the attached. The matrix that is giving me trouble is on the table called Gains


https://1drv.ms/u/s!ApiFb_juj94X1mFAoTpHzLPu8GL3?e=zSJB6i

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors