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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
THPNO80
Frequent Visitor

Calculated Table + Add Columns (when filtered by category)

Hi everyone,

 

I do not have the "Financial Estimate" on a daily level (monthly only). So I created a table (Fig. 01) to calculate the daily average based on the estimated value for the current month. It's working properly, however, I need to make sure this table of averages (DAILY FINANCIAL AVG - FIG.01) could be recalculated if the filter context is applied by its category.

 

It would be possible to nest it with the CALCULTATABLE function? Thanks in advance for your help!

 

Calculated table based on financial estimate:

TAB_AVG_FOR_FINANCIAL =

VAR _days = DAY(EOMONTH(TODAY(),0)) 

// Returns the last day of the current month

 

VAR _value = 0

// incremental factor

 

VAR _genTab = GENERATESERIES(1,_days)
// Returns a single column table containing the a sequence of days of the current month

 

VAR _avgTab = ADDCOLUMNS(_genTab,"AVG_IS",_value+SUMX(FILTER(_genTab,[Value]<=EARLIER([Value])),SUMX(FIN_EST,FIN_EST[AVGX_DAY])))
// Create a serie based on the Financial AVG (related table)

 

RETURN _avgTab

 

(fig.01)

Fin_AVG.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@THPNO80 , Based on what I got, see if these can help

Measure way

Power BI Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...


Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

 

 

Tables way
https://amitchandak.mediumcom/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

 

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@THPNO80 , Based on what I got, see if these can help

Measure way

Power BI Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...


Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

 

 

Tables way
https://amitchandak.mediumcom/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

 

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

Hi @amitchandak 

 

Awesome! your article was extremely helpful to get a solution to this issue. Thank you very much 🙂

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.