web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show columns without d...
Power Apps
Answered

Show columns without data in barchart

(0) ShareShare
ReportReport
Posted on by 7

Hi.. im not a programmer and dont speak english, sorry, but looking for help because need create a weekly barchart and want to show each day's bar (or empty space).

 

I know what's is wrong (the missing days group do not exist) and i created a collection called "Semana" with all days, but.. i don't know how combine it with de main data (Ticket Soporte) for my purpouse

 

this is my code:

 

AddColumns(GroupBy(AddColumns(Filter('Ticket Soporte'; (Created >= DatePicker1.SelectedDate) && (Created <= DatePicker1_1.SelectedDate));"Día_Semana";Switch(Weekday(Created);1;"Dom";2;"Lun";3;"Mar";4;"Mie";5;"Jue";6;"Vie";7;"Sab"));"Día_Semana";"Día");"Casos";CountRows(Día))

 

 

if you can explain me or recommend a tutorial relatively specifics i appreciate so much

Thanks!

Consulta.jpg
Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Afkael ,

     

    Can you try the below:

     

    With(
    	{_PeriodTickets: Filter(
    		'Ticket Soporte'; 
    			Created >= DatePicker1.SelectedDate;
    			Created <= DatePicker1_1.SelectedDate
    		)
    	},
    	AddColumns(
    		Sequence(
    			7;
    			1
    		) As Days;
    		"Día_Semana";
    		Switch(Days.Value;1;"Dom";2;"Lun";3;"Mar";4;"Mie";5;"Jue";6;"Vie";7;"Sab");
    		"TicketCount",
    		CountRows(
    			Filter(
    				_PeriodTickets;
    				Weekday(Created) = Days.Value
    			)
    		)
    	)
    )

     

    Basically it creates a sequence from 1-7 and then adds a column for "Día_Semana" and a column that has the count of tickets for that day within the selected time period.

  • Afkael Profile Picture
    7 on at

    Hi.. the code have some mistakes because my regional configuration  (i used ";") but it working!!.. Now, i studing you resolution for i incorpotare in my knows. Thank you!!

     

    With(
    	{_PeriodTickets: Filter(
    		'Ticket Soporte'; 
    			Created >= DatePicker1.SelectedDate;
    			Created <= DatePicker1_1.SelectedDate
    		)
    	};
    	AddColumns(
    		Sequence(
    			7;
    			1
    		) As Days;
    		"Día_Semana";
    		Switch(Days.Value;1;"Dom";2;"Lun";3;"Mar";4;"Mie";5;"Jue";6;"Vie";7;"Sab");
    		"TicketCount";
    		CountRows(
    			Filter(
    				_PeriodTickets;
    				Weekday(Created) = Days.Value
    			)
    		)
    	)
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard