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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

sum, filter and grouping issue

Hello,

i am a beginner, i would be thankfull, if you could help me to undrestand what is my mistakes in this report, i looked up but i couldnt undrestand how to solve it:

 

in the fist table, „soll“ ist the quantity which is shown each month.

In the second table, I want to have „soll“ quantity according to each „plannungressourcenr.“

In third table, i want to see „soll“ quantity for each „ressourcenr“.

1.png

But in second and third table, it is showing the same total amount for „soll“ from first table.

I created a measure for soll according to the following formular and it is used in all tables.

 

M sollmenge = CALCULATE(

SUM('Projekt-Ressourcen-Zeit Posten'[Menge])

,FILTER(

ALL('Projekt-Ressourcen-Zeit Posten'[Erfassungsart])

,'Projekt-Ressourcen-Zeit Posten'[Erfassungsart] = "soll"

)

)

 

relation between my tables  are:

2.png

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Have you tried to change the filter direction in the relationship view directly?

If still not works, could you please consider sharing a simple sample file without any sesentive information for further discussion?

 

Best Regards,
Community Support Team _ Yingjie Li

View solution in original post

4 REPLIES 4
v-yingjl
Community Support
Community Support

Don't @MahsaR,

According to my test, the reason they cause this problem is that the cross-filter address between the date table and the message table is unique instead of both:

relationship.png

To resolve this, you can change the direction from one to both directly:

direction.png

Or use the Crossfilter() function to modify its measurement:

soll =
CALCULATE (
    SUM ( 'Projekt-Ressourcen-Zeit Posten'[Menge] ),
    FILTER (
        ALL ( 'Projekt-Ressourcen-Zeit Posten'[Emfassungsart] ),
        'Projekt-Ressourcen-Zeit Posten'[Emfassungsart] = "soll"
    ),
    CROSSFILTER ( 'Date'[Date], 'Post Ressource Kapazitat'[Date], BOTH )
)

re.png

Attached a sample file in the next one, hopes to help you.

Best regards
Community Support Team _ Yingjie Li
If this post helps,then consider Accepting it as the solution to help other members find it faster.

Anonymous
Not applicable

Result1.JPG

i used CROSSFILTER but it is not having correct answer. it gives me following result, which is still wrong, because i need to see how  the total quantity of 1350 is spread between plannungressources.

 

 

Hi @Anonymous ,

Have you tried to change the filter direction in the relationship view directly?

If still not works, could you please consider sharing a simple sample file without any sesentive information for further discussion?

 

Best Regards,
Community Support Team _ Yingjie Li

amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

M sollmenge = CALCULATE(
SUM('Projekt-Ressourcen-Zeit Posten'[Menge])
,FILTER(
('Projekt-Ressourcen-Zeit Posten'[Erfassungsart])
,'Projekt-Ressourcen-Zeit Posten'[Erfassungsart] = "soll"
)
)

Try like

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors