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
jakeclements
Frequent Visitor

Struggling with measure totals in PBI desktop

I have read through measure total issues here on the forum, but it seems everyone's solution is a little different.  I've attempted most of them, but hit a wall each time.  Can someone please help me with this?  See the below screenshot of what I am trying ot solve.  I basically do not know what to input into the if statement "false" condition.  Right now, I have a "?" placeholder.  "Client Name" is the far left column in the table that is not shown in the snapshot.

 

jakeclements_0-1674480435352.png

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @jakeclements ,

You can create another new measure as below and put this new measure to replace the original measure [Annualized Revenue] onto the table visual. Later check if it can return the correct total values...

New Measure =
SUMX (
    GROUPBY (
        blinvoiceline,
        blinvoiceline[Discharge Date], // Text fields in the visual
        blinvoiceline[Min Bill Date], // Text fields in the visual
        blinvoiceline[Max Bill Date] // Text fields in the visual
    ),
    [Annualized Revenue]
)

yingyinr_1-1674640172505.png

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you, could you please provide some raw data in your table 'blinvoiceline',‘clclient’ (exclude sensitive data) with Text format, your visual Fields settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
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

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hi  @jakeclements ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

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

Hi @jakeclements ,

You can create another new measure as below and put this new measure to replace the original measure [Annualized Revenue] onto the table visual. Later check if it can return the correct total values...

New Measure =
SUMX (
    GROUPBY (
        blinvoiceline,
        blinvoiceline[Discharge Date], // Text fields in the visual
        blinvoiceline[Min Bill Date], // Text fields in the visual
        blinvoiceline[Max Bill Date] // Text fields in the visual
    ),
    [Annualized Revenue]
)

yingyinr_1-1674640172505.png

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you, could you please provide some raw data in your table 'blinvoiceline',‘clclient’ (exclude sensitive data) with Text format, your visual Fields settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

Hi,

Share some data, explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@jakeclements , You need have a measure like

 

Sumx(Summarize(Fact, dim[COlumn in Visual], Fact[Column in Visual], "_1", [Current Measure]), [_1] )

It gave me a total, but the total is incorrect still.  Am I typing the formula in incorrectly?

 

jakeclements_0-1674488394928.png

 

jakeclements
Frequent Visitor

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.