Forum Discussion
Anonymous
7 years agoNot applicable
Matrix with Weekly Data Columns and String Values
I'm new to PowerBI and I'm trying to create the visualization below and am having trouble because of a few areas: 1. I am getting an error with dates because there are gaps in the dates ...
- 7 years ago
Hi Anonymous,
I'm assuming that you want to return Yes when measure is greater than target.
Use the following measure to add to your matrix:
YES / NO = IF ( HASONEFILTER ( Data[Week Starting] ); IF ( SUM ( Data[Measure] ) < SUM ( Data[Target] ); "No"; "Yes" ); COUNTROWS ( FILTER ( SUMMARIZE ( Data; Data[Week Starting]; "YES/NO"; SUM ( Data[Measure] ) - SUM ( Data[Target] ) ); [YES/NO] > 0 ) ) )Regards,
MFelix
- 7 years ago
Hi Anonymous,
Select the date column then select the modeling on the bar and format the date as you need.
Regards,
MFelix
MFelix
Super User
7 years agoHi Anonymous,
I'm assuming that you want to return Yes when measure is greater than target.
Use the following measure to add to your matrix:
YES / NO =
IF (
HASONEFILTER ( Data[Week Starting] );
IF ( SUM ( Data[Measure] ) < SUM ( Data[Target] ); "No"; "Yes" );
COUNTROWS (
FILTER (
SUMMARIZE (
Data;
Data[Week Starting];
"YES/NO"; SUM ( Data[Measure] ) - SUM ( Data[Target] )
);
[YES/NO] > 0
)
)
)
Regards,
MFelix
- Anonymous7 years agoNot applicable
Thanks Felix!! This is great! Any advice on how to adjust the format of the dates as columns?
Cheers,
Julian
- MFelix7 years ago
Super User
Hi Anonymous,
Select the date column then select the modeling on the bar and format the date as you need.
Regards,
MFelix