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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
NvdVeerdonk
Frequent Visitor

Visual problem by showing total

I have a problem.

 

I made a visual in that visual are 2 colomns named Tarief and Totaal van Categerie. 

No is my problem that i want to show the totals of those two after they multiplied with formule:

 

Tarief * Totaal van Categorie.  How can i do this. formule.png

1 ACCEPTED SOLUTION

hi, @NvdVeerdonk 

For your case, try this formula

Measure = CALCULATE(SUMX('Tarieven 02','Tarieven 02'[Tarief]*CALCULATE(COUNTA('20190508 0916 export'[Categorie]))))

Result:

7.JPG

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-lili6-msft
Community Support
Community Support

hi, @NvdVeerdonk 

For your case, just create a calculate measure by this formula:

Measure = CALCULATE(SUM('Table'[Tarief]))*CALCULATE(SUM('Table'[Totaal van Categerie]))

8.JPG

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-measures

https://docs.microsoft.com/en-us/power-bi/desktop-measures

By the way: If you want the total of the measure is 407+133650= 134057 not 148916

You could see this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

Then for your case, use this measure formula:

Measure 2 = 
VAR _table =
    SUMMARIZE (
        'Table',
        'Table'[Relatie],
        'Table'[Categorie],
        "_total", CALCULATE ( SUM ( 'Table'[Tarief] ) )
            * CALCULATE ( SUM ( 'Table'[Totaal van Categerie] ) )
    )
RETURN
    SUMX ( _table, [_total] )

9.JPG

here is pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Lin,

 

Thank you for the answer. I understand the measure only it gifs an error because "Totaal van Categorie" isn't a kolom in a table. This the valuwe Categorie. so i can't find Totaal van categorie and when i use Categorie i can't use the measure anywere. 

 

 answer.png

 

Best Regards,

Nicole

hi, @NvdVeerdonk 

Which column are not numeric type?

Could you share your simple sample pbix file for us?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 Hi @v-lili6-msft,

 

I'm just learning Power BI. 

How can i send you the sample?

i can share the data whit you but i need your E-mail ore you can requested an acces to the data: 

https://app.powerbi.com/groups/me/reports/1aab4f06-f191-4474-840c-047026adc3e6?ctid=09ac6aea-0dc4-42...

 

Let me know what i have to do.

 

Best Regards,

Van de Veerdonk

 

 

hi, @NvdVeerdonk 

You can upload it to OneDrive and post the link here.

or send link just by private letter.

Do mask sensitive data before uploading.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi, @NvdVeerdonk 

For your case, try this formula

Measure = CALCULATE(SUMX('Tarieven 02','Tarieven 02'[Tarief]*CALCULATE(COUNTA('20190508 0916 export'[Categorie]))))

Result:

7.JPG

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.