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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Helper II
Helper II

Adjust DAX calculation


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!


    "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) ))

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:


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


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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.