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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
NickProp28
Post Partisan
Post Partisan

Total value in the table/ card does not tally

Dear Community,

 

The code below works fine to sort the new customer, however the total sum for February does not match. The total should be '5' .

New Customers = //Cus
VAR CustomerTM = VALUES(Customer[Client])
VAR PriorCustomer = CALCULATETABLE(VALUES(Customer[Client]),
FILTER(ALLEXCEPT(Customer,Customer[Branch]),
'Customer'[ETD] > Min('Customer'[ETD] ) - Parameter[Parameter Value] && 'Customer'[ETD] < MIN('Customer'[ETD])))
return
COUNTROWS(
EXCEPT(CustomerTM,PriorCustomer))

NickProp28_0-1657776333573.png

After looking into it for so many days, I still have no clue about it..
What are the most common issues that cause this problem and how do I fix it ?

 

Appreciate any help you can provide.
Thank you!

Attached with the pbix: https://drive.google.com/file/d/1SVBM5Tqizqq3pBHl10fwcLV-l7LbwhS7/view?usp=sharing

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NickProp28 ,

Please refer to the pbix file to see if it helps you.

Create a measure based on the New Customersw.

Measure = var _b=SUMMARIZE(Append1,Append1[Client],"aaa",[New Customersw])
return
IF(HASONEVALUE(Append1[Client]),Append1[New Customersw],SUMX(_b,[aaa]))

vpollymsft_0-1658129016589.png

Please refer to the blog about the total issues.

Dealing with Measure Totals 

 

Best Regards
Community Support Team _ Polly

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

4 REPLIES 4
Anonymous
Not applicable

Hi @NickProp28 ,

I cannot open the pbix file, could you please upload it again? Then provide more details with your desired output. 

Sensitive information can be removed in advance. 

 

Best Regards
Community Support Team _ Polly

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

Dear @Anonymous ,
Good day!

This measure counts new customers who haven't purchased anything in the past 180 days (parameter set to 180 day, half year) and filtering by branch, year-month, and parameter.

New Customersw = //Cus
VAR CustomerTM = VALUES(Append1[Client])
VAR PriorCustomer = CALCULATETABLE(VALUES(Append1[Client]),
FILTER(ALLEXCEPT(Append1,Append1[Branch]),
'Append1'[ETD] > Min('Append1'[ETD] ) - Parameter[Parameter Value] && 'Append1'[ETD] < MIN('Append1'[ETD])))
return
COUNTROWS(
EXCEPT(CustomerTM,PriorCustomer))

Nevertheless, on February 2022 'ZZZ' branch, the table shows had total 5 clients, yet there are only 4.

NickProp28_0-1658126963980.png


Expected outcome: According to my current report, I also have 5 clients as shown in the BI table. 
Attached with pbix: https://drive.google.com/file/d/1UHVAtB7mDVKfA0WUMSbE0rNBqJHZbKBY/view?usp=sharing

Thank you!

Anonymous
Not applicable

Hi @NickProp28 ,

Please refer to the pbix file to see if it helps you.

Create a measure based on the New Customersw.

Measure = var _b=SUMMARIZE(Append1,Append1[Client],"aaa",[New Customersw])
return
IF(HASONEVALUE(Append1[Client]),Append1[New Customersw],SUMX(_b,[aaa]))

vpollymsft_0-1658129016589.png

Please refer to the blog about the total issues.

Dealing with Measure Totals 

 

Best Regards
Community Support Team _ Polly

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

amitchandak
Super User
Super User

@NickProp28 , refer if my method can help

Customer Retention Part 5: LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retentio...

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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