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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Division Measure Total in a table incorrect

Hi, 

 

I have a simple DAX which divides one column from another. 

 

Quote Term 2 = SUM('Case'[OppJoinHead.Quotes.Term__c]) / Count('Case'[Id])

 

divide1.PNG

 

My issue is that the Quote Term 2 Total is showing the measure of the total (64.92) where i need it to show the total value of the column (635.03). I have looked at previous posts and some videos on YT but only found solutions for Multiplications not division. 

 

Any help is appriciated. 

 

Dobby Libr3

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Why not create a calculated column instead of measure?

Expression is as below:

 

Column = 'Table'[Quote - Term]/'Table'[Count]

 

And you will see:

Annotation 2020-02-12 155848.png

Here, measure is applied in row,while calculated column is in context.

 


Best Regards,
Kelly

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi Dobby - 

 

Do you mind sharing the file (you can send it in a private message to me). I tried to replicate your situation but was unable to do so.

 

Regards

E

Anonymous
Not applicable

Hello, I have made a sample PBix , This is pretty much the same I just changed the COUNT in the DAX to a SUM.

 

Thanks E

Hi @Anonymous ,

 

Why not create a calculated column instead of measure?

Expression is as below:

 

Column = 'Table'[Quote - Term]/'Table'[Count]

 

And you will see:

Annotation 2020-02-12 155848.png

Here, measure is applied in row,while calculated column is in context.

 


Best Regards,
Kelly

Anonymous
Not applicable

Hi Dobby - 

 

Please create a new measure as explained below . If it works please let me know, I will be able to explain what's happening here.

Quote Term 3 = IF(HASONEFILTER('Table'[Index]),SUM('Table'[Quote - Term]) / COUNT('Table'[Count]),SUMX('Table',([Quote Term 2])))

 

Once the above is added, please add the above measure in the table visual and that should help get what you were looking for. Please let me know.

 

Regards

E

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.