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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CLCastroEn
Helper IV
Helper IV

total sales problem

Hello : I have a table that with sales 2019 and 2020 :

CLCastroEn_1-1606334714529.png

where you can clearly see that the total OS 2019 and 2020 is not what it should give. wanted to know if you know why this is happening? if you look at it's impossible for it to add up to 28 billion in OS 2019.

4 REPLIES 4
Icey
Community Support
Community Support

Hi @CLCastroEn ,

 

Is this problem solved?

 

If it is solved, can you share your solution with us? Or please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If not, please share us more details.

 

 

Best Regards,

Icey

edhans
Super User
Super User

You should make them explict measures - best practice is to NEVER drag values into your visuals, and this is why. Now you cannot change the measure. You will have to remove them and add measures similar to mine. The YourNormalMeasure might be SUM(Tablename[FieldName]) if you are just dragging fields.

 

Again, without sample data, I cannot really help much further. I don't want confidentiald data. You will need to provide some sample data that gives us enough to help with.

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
edhans
Super User
Super User

Whatever measure you are using for SO 2019/SO 2020 is what is recalculating in the total. So the Total of a visual is not the summation of the values above it, it is the same measure recalculated for all values in your Status Sales field. 

 

You likely need a measure like so for this:

 

SO2019 =
IF(
    ISINSCOPE( TableName[Status Sales] ),
    [YourNormalMeasure],
    SUM( TableName[SomeValue] )
)

 

But without knowing what your measure is and some sample data to test with, it is impossible for me to be sure. Provide data per links below.

 

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Hello! @edhans what happens is that OS 2019 and 2020 are not DAX Measures, but, they are columns that come from an excel and that unfortunately I cannot share.

In

yournormalmeasure that I should put? if I put the sum(sales 2019)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.