Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 I'm using due to them being weekly data.
2. I am having trouble re-formatting dates because PowerBI is putting in a long-winded full date ("Monday, January 1, 2018" instead of "01/01/2018")
3. I have not figured out how to do a countif using strings.
Any help or advice would be greatly appreciated.
Thanks!
Solved! Go to Solution.
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
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous,
Select the date column then select the modeling on the bar and format the date as you need.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks Felix!! This is great! Any advice on how to adjust the format of the dates as columns?
Cheers,
Julian
Hi @Anonymous,
Select the date column then select the modeling on the bar and format the date as you need.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
56 | |
38 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |