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! Learn more

Reply
jcastr02
Post Prodigy
Post Prodigy

Sum of entire column to show in each row

I have a calculated table in Power BI below

AggregatedData - with Seasonal Volume = SUMMARIZE('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View',
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Receiving Store],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Reporting Week],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Final Store Closure Date],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Store #],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Change in Status],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DE Allowed],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DR Allowed],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[PCC Allowed],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DE Current Support],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DR Current Support],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[PCC Current Support],
        'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume],
"TotalBaseRx",MAX('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume]),
"TotalRetainedRx", SUM('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[uRx/Day - Retained Scripts - Receiving Store]),
"NewRxVolume", MAX('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume])+SUM('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[uRx/Day - Retained Scripts - Receiving Store]))

These results are produced when filtering for Receiving store 11365

Receiving Store	Reporting Week	Final Store Closure Date	Store #	Change in Status	DE Allowed	DR Allowed	PCC Allowed	DE Current Support	DR Current Support	PCC Current Support	SeasonalVolume.Avg Rx Volume	TotalBaseRx	TotalRetainedRx	NewRxVolume	NewRxVolumeCategory	RetainedRxVolumeCatgory	Category of Support
11365	2/12/2025 0:00	2/27/2025 0:00	2575	Updated	Y	Y	Y		AutoPhLEX + On Demand		219.5	219.5	4	223.5	100+	1+	No Support
11365	2/12/2025 0:00	2/25/2025 0:00	3171	Updated	Y	Y	Y				219.5	219.5	42	261.5	250+	25+	Temp PhLEX

How could I get the New Rx Volume formula to show 265.5 in each row.  It would sum up the TotalbaseRx + sum of each item in TotalretainedRx  (219.5+4+42)
2 REPLIES 2
Anonymous
Not applicable

Hi ,

Based on the information, try using the following DAX formula for NewRxVolumn.

"NewRxVolume",
   MAX('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume])
   + CALCULATE(
    SUM('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[uRx/Day - Retained Scripts - Receiving Store]),
    ALL('Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View')
   )

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@jcastr02 

Could you try this version:

AggregatedData =
SUMMARIZE (
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View',
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Receiving Store],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Reporting Week],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Final Store Closure Date],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Store #],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[Change in Status],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DE Allowed],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DR Allowed],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[PCC Allowed],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DE Current Support],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[DR Current Support],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[PCC Current Support],
    'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume],
    "TotalBaseRx",
        MAX ( 'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume] ),
    "TotalRetainedRx",
        SUM ( 'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[uRx/Day - Retained Scripts - Receiving Store] ),
    "NewRxVolume",
        VAR _TotalBaseRx =
            MAX ( 'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[SeasonalVolume.Avg Rx Volume] )
        VAR _TotalRetainedRx =
            SUMX (
                'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View',
                'Closing Stores - Recieving Volume - Store#1 & Roll Up - Matrix View'[uRx/Day - Retained Scripts - Receiving Store]
            )
        RETURN
            _TotalBaseRx + _TotalRetainedRx
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.

Top Solution Authors