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
Aucesar
Helper III
Helper III

Adjust DAX calculation

Hi,

I´m new on DAX and using the DAX Studio I got this to return the right value, what I need is to adjust it to always last month and the result in %, both of those are currency colunms. Thanks so far!

 

/* START QUERY BUILDER */
EVALUATE
CALCULATETABLE(
    ROW(
    "ValorNominal for INVESTIMENTOS divided by ValorNota", [ValorNominal for INVESTIMENTOS divided by ValorNota]
    ),
    KEEPFILTERS( FILTER( ALL( Calendario[Date] ), Calendario[Date] >= DATE(2022,8,1) && Calendario[Date] <= DATE(2022,8,31) ))
)
/* END QUERY BUILDER */

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Aucesar 

Thanks for reaching out to us.

>>  what I need is to adjust it to always last month and the result in %, both of those are currency colunms.

It is not enough to provide correct solutions based on measurement alone. Can you share some data and expected results? thank you

 

 

Best Regards,

Community Support Team _Tang

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

Hi @v-xiaotang , sure:

Expectated results: A percentage value between two colunms based on last month, let me share some data:

 

Table1
Date (Filtered last month) Profit
01/Sep $10,00
02/Sep $20,00
03/Sep (so on)... $30,00

 

Table2
Date (filtered last month) Expenses (Filtered by investiments)
01/Sep $3,00
02/Sep $4,00
03/Sep (so on)... $5,00

 

Expected result:

Profit total = $60,00

Investments = $12,00

Result = 12 / 60 = 0.2 converted to percentage = 20%

 

What I need is to filter date, sum Table1 value (filtered date), sum table2 (filtered date AND by Investiments) and in the end divide one by another to get a percentage.

 

Please let me know if you need more info, thanks!

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors