Forum Discussion
USERELATIONSHIP not working correctly
Thanks!
Using your formula PowerBI says that the column Statussen[Statuscategorie] either doesn't exit or doesn't have a relationship in de current context.
Below an image of the two tables and how they're related (both decimal number format).
Hi mrleijzer ,
Thank you for your additional information, could you please try to use the following measure?
Measure =
CALCULATE (
COUNT ( Projecttakken[Boeknummer] );
FILTER (
ALLSELECTED ( Projecttakken );
Projecttakken[Gewijzigd] IN FILTERS ( 'Calendar'[Date] )
);
Statussen[Statuscategorie] = "Vervallen"
)
Best regards,
- mrleijzer6 years agoHelper I
Thanks Dong Li, but it's still coming up blank.
- v-lid-msft6 years agoCommunity Support
Hi mrleijzer ,
Where are you applied the 'Date'[Date] column, in the table visual or in the filter? We can try to use the following measur if you use it in the filter:
Measure = CALCULATE ( COUNT ( Projecttakken[Boeknummer] ); FILTER ( CALCULATETABLE ( ALLSELECTED ( Projecttakken ); 'Calendar'[Date] ); Projecttakken[Gewijzigd] IN FILTERS ( 'Calendar'[Date] ) ); Statussen[Statuscategorie] = "Vervallen" )Measure = CALCULATE ( COUNT ( Projecttakken[Boeknummer] ); FILTER ( ALL ( Projecttakken ); Projecttakken[Gewijzigd] IN FILTERS ( 'Calendar'[Date] ) ); Statussen[Statuscategorie] = "Vervallen" )
Best regards, - v-lid-msft6 years agoCommunity Support
Hi mrleijzer ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,- mrleijzer6 years agoHelper I
Sorry for not replying earlier.
I don't use filters, everything is filtered in measures.
I tried your calculations nevertheless but this also didn't work. Thanks for the suggestion.