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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Poo1405
Frequent Visitor

Solution for disappear the unnecessary results

I had a mistake when I designed my dashboard; it can be seen from the picture below, the actual amount spent and CPQL only belong to a value of FB (and the others odd must be zero because the amount of its belongs to spent for vendors field),  

Poo1405_2-1633606925118.png

I tried to fix it by adding the function Filter = FB, it works when it only appears in FB rows, but it is wrong the original number. 

 

this is my fixed wrong solution: 

Amount Spent (USD) for FB =
CALCULATE(
    SUM('fb rp'[Amount Spent (USD)]),FILTER('file combine','file combine'[utmSource] = "FB")
)
Poo1405_3-1633607583087.png

 

 Additional note: currently, I have connected the amount spend field from another table, but only to the campaign level (GLU_2021Q3_OSSW_GLADIATOR2), I think that's why the levels below the numbers don't map correctly, but that number was calculated accurately.
 
I don't know how to solve my problem, and I need help and advice from everyone. Can anyone help me solve it?
Thank for taking a look at my post!!
 
1 ACCEPTED SOLUTION

The issue is with the field you are using in the visual (utmsource from the file combine table) which has no relationship with the fb rp table on which you are carrying out the sums. 
I would recommend you change relationships of the Source dimension table as follows, and then use the utmsource field from this dimension table:

From:

From...From...ToTo

 

Captura.JPG

 

I've attached a new version of your test file

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

How is your model set up?

can you share a non-confidential PBIX file or sample data?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






I also thought that I had designed a relationship that was unsuitable for my design purposes, but I have not found a way to fix it. You can see the current file t is testing; I think that's no problem.
https://drive.google.com/file/d/1ZvXyV00kZRA7c1CXX2t-EuhGTHbgQauS/view?usp=sharing 

The issue is with the field you are using in the visual (utmsource from the file combine table) which has no relationship with the fb rp table on which you are carrying out the sums. 
I would recommend you change relationships of the Source dimension table as follows, and then use the utmsource field from this dimension table:

From:

From...From...ToTo

 

Captura.JPG

 

I've attached a new version of your test file

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thanks, @PaulDBrown so much for pointing out my mistake and helping me to correct it.

I really appreciate it!!!

Happy to help! Just make sure that the utmsource field in the Source dimension table contains all possible values from both 'file combine' [utmsource] and 'fb rp'[Source]





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.