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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors