power bi dax expression

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Power BI training and help » Power BI DAX expression help

Power BI DAX expression help

resolvedResolved · Medium Priority · Version 365

Power BI DAX expression help

Hi there, I want to ask a question regarding DAX expressions in power BI.

I am trying to write this expression, that worked in Qlik Sense, but just need some help converting it into a DAX expression:

sum(Total)*(Average)

where Total and average are fields within the data model.

My DAX is currently:

Size1 = (SUM('Master Invoices'[Total]))*AVERAGE('Savings Ranges by L2'[Average])

but I am not getting the desired result.

Many thanks,

RE: Power BI DAX expression help

Hi Azum,

Thank you for the forum question.

The DAX looks fine

Size1 = (SUM('Master Invoices'[Total]))*AVERAGE('Savings Ranges by L2'[Average])


The DAX will sum all values in the Total column from the Master Invoices table.

sum all values in the Average column from the Savings Ranges by L2 table and divide it with the number of rows you have in the Savings Ranges by L2 table.

And then the two numbers will be multiplied.

Sorry I cannot tell you why you are not getting the desired result.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

 

Training courses

 

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Power BI tip:

Data Cleaning and Transformation

Ensure your data is clean and well-structured before importing it into Power BI. Use Power Query Editor to clean and transform your data. This tool allows you to perform various operations like filtering, merging, and reshaping data, ensuring it's in the right format for analysis.

View all Power BI hints and tips


Server loaded in 0.08 secs.