Skip to content

Commit ebcdbf9

Browse files
authored
Merge pull request #112 from MicrosoftCloudEssentials-LearningHub/upgrade-counter-logic
Upgrade counter logic
2 parents ee33b1a + 72a73f8 commit ebcdbf9

14 files changed

Lines changed: 101 additions & 73 deletions

File tree

.github/workflows/update-md-date.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
pull-requests: write
1011

1112
jobs:
1213
update-date:
@@ -35,7 +36,12 @@ jobs:
3536
run: python .github/workflows/update_date.py
3637

3738
- name: Commit changes
39+
env:
40+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
3841
run: |
42+
git fetch origin ${{ github.event.pull_request.head.ref }}
43+
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
3944
git add -A
4045
git commit -m "Update last modified date in Markdown files" || echo "No changes to commit"
46+
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
4147
git push origin HEAD:${{ github.event.pull_request.head.ref }}

1_MS365/Excel/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Costa Rica
77
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
88
[brown9804](https://github.com/brown9804)
99

10-
Last updated: 2024-11-15
10+
Last updated: 2025-07-17
1111

1212
----------
1313

@@ -28,7 +28,9 @@ Last updated: 2024-11-15
2828
| User Interface | Excel also has a variety of interactive features allowing user interfaces that can completely hide the spreadsheet from the user, so the spreadsheet presents itself as a so-called application, or decision support system (DSS), via a custom-designed user interface. |
2929
| Learning Excel | For beginners, there are many resources available online to learn Excel. These resources introduce the most important features and functions needed when starting out with Excel, from entering and sorting basic data to writing your first formulas. |
3030

31+
<!-- START BADGE -->
3132
<div align="center">
32-
<h3 style="color: #4CAF50;">Total Visitors</h3>
33-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
33+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
34+
<p>Refresh Date: 2025-07-16</p>
3435
</div>
36+
<!-- END BADGE -->

1_MS365/Forms/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Costa Rica
77
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
88
[brown9804](https://github.com/brown9804)
99

10-
Last updated: 2024-11-15
10+
Last updated: 2025-07-17
1111

1212
----------
1313

@@ -27,7 +27,9 @@ Last updated: 2024-11-15
2727
| Learning Microsoft Forms | For beginners, there are many resources available online to learn Microsoft Forms. These resources introduce the most important features and functions needed when starting out with Microsoft Forms. |
2828
| Security | Due to a wave of phishing attacks utilizing Microsoft 365 in early 2021, Microsoft uses algorithms to automatically detect and block phishing attempts with Microsoft Forms. |
2929

30+
<!-- START BADGE -->
3031
<div align="center">
31-
<h3 style="color: #4CAF50;">Total Visitors</h3>
32-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
32+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
33+
<p>Refresh Date: 2025-07-16</p>
3334
</div>
35+
<!-- END BADGE -->

1_MS365/Planner/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Costa Rica
77
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
88
[brown9804](https://github.com/brown9804)
99

10-
Last updated: 2024-11-15
10+
Last updated: 2025-07-17
1111

1212
----------
1313

@@ -29,7 +29,9 @@ Last updated: 2024-11-15
2929
| Integration | Microsoft Planner is integrated with other Microsoft 365 apps, which means tasks and plans can be accessed across the Microsoft 365 ecosystem. |
3030
| Pricing | Microsoft Planner is included in Microsoft 365 subscriptions. There are also standalone plans available for purchase. |
3131

32+
<!-- START BADGE -->
3233
<div align="center">
33-
<h3 style="color: #4CAF50;">Total Visitors</h3>
34-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
34+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
35+
<p>Refresh Date: 2025-07-16</p>
3536
</div>
37+
<!-- END BADGE -->

1_MS365/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Costa Rica
77
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
88
[brown9804](https://github.com/brown9804)
99

10-
Last updated: 2024-11-15
10+
Last updated: 2025-07-17
1111

1212
----------
1313

@@ -49,7 +49,9 @@ Last updated: 2024-11-15
4949
- **Compliance Manager**: A workflow-based risk assessment tool in the Microsoft 365 compliance center. You can use Compliance Manager to ensure your company is complying with data protection regulations.
5050

5151

52+
<!-- START BADGE -->
5253
<div align="center">
53-
<h3 style="color: #4CAF50;">Total Visitors</h3>
54-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
54+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
55+
<p>Refresh Date: 2025-07-16</p>
5556
</div>
57+
<!-- END BADGE -->

1_MS365/SharePoint/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Costa Rica
77
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
88
[brown9804](https://github.com/brown9804)
99

10-
Last updated: 2024-11-15
10+
Last updated: 2025-07-17
1111

1212
----------
1313

@@ -31,8 +31,10 @@ Last updated: 2024-11-15
3131
| Pricing | SharePoint is included in Microsoft 365 subscriptions. There are also standalone plans available for purchase. |
3232

3333

34+
<!-- START BADGE -->
3435
<div align="center">
35-
<h3 style="color: #4CAF50;">Total Visitors</h3>
36-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
36+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
37+
<p>Refresh Date: 2025-07-16</p>
3738
</div>
39+
<!-- END BADGE -->
3840

2_Dynamics365/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Costa Rica
66
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
77
[brown9804](https://github.com/brown9804)
88

9-
Last updated: 2024-11-19
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -29,7 +29,9 @@ Last updated: 2024-11-19
2929
- **Efficiency**: With the Dynamics 365 ecosystem, you spend less time switching between applications and searching for information.
3030
- **Cost-effective**: Dynamics 365 makes large-scale, costly and lengthy ERP and CRM projects a thing of the past. You can start small, achieve results fast, and pay only for the applications that you actually need.
3131

32+
<!-- START BADGE -->
3233
<div align="center">
33-
<h3 style="color: #4CAF50;">Total Visitors</h3>
34-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
35-
</div>
34+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
35+
<p>Refresh Date: 2025-07-16</p>
36+
</div>
37+
<!-- END BADGE -->

3_PowerPlatform/0_PowerApps/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Costa Rica
55
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
66
[brown9804](https://github.com/brown9804)
77

8-
Last updated: 2024-11-19
8+
Last updated: 2025-07-17
99

1010
------------------------------------------
1111

@@ -36,7 +36,9 @@ Microsoft Power Apps is a suite of apps, services, and connectors, as well as a
3636
formatDateTime(utcNow(), 'MM-dd-yyyy')
3737
```
3838

39+
<!-- START BADGE -->
3940
<div align="center">
40-
<h3 style="color: #4CAF50;">Total Visitors</h3>
41-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
42-
</div>
41+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
42+
<p>Refresh Date: 2025-07-16</p>
43+
</div>
44+
<!-- END BADGE -->

3_PowerPlatform/1_PowerBI/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Costa Rica
66
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
77
[brown9804](https://github.com/brown9804)
88

9-
Last updated: 2024-11-19
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -47,7 +47,9 @@ Last updated: 2024-11-19
4747

4848
> Power BI is used differently by different roles in a project or team. You may view reports and dashboards in the Power BI service. Others may create reports in Power BI Desktop and publish them to the service. Some may use the Power BI Mobile app to track sales data. Developers may use Power BI APIs to integrate data and visuals into their apps.
4949
50+
<!-- START BADGE -->
5051
<div align="center">
51-
<h3 style="color: #4CAF50;">Total Visitors</h3>
52-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
52+
<img src="https://img.shields.io/badge/Total%20views-9-limegreen" alt="Total views">
53+
<p>Refresh Date: 2025-07-16</p>
5354
</div>
55+
<!-- END BADGE -->
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// Costa Rica
2-
// July, 2020
3-
// Calculate days Between Periods
4-
// with filter
5-
6-
#daysBetweenPeriods =
7-
VAR daysBetweenPeriods =
8-
CALCULATE (
9-
LASTDATE ( ObjectClosedDate[ClosedDate] ),
10-
FILTER (
11-
ALLEXCEPT ( ObjectClosedDate, ObjectClosedDate[Type] ),
12-
ObjectClosedDate[ClosedDate] < EARLIER ( ObjectClosedDate[ClosedDate] )
13-
)
14-
)
15-
RETURN
16-
DATEDIFF ( daysBetweenPeriods, ObjectClosedDate[ClosedDate] , DAY )
1+
// Costa Rica
2+
// July, 2020
3+
// Calculate days Between Periods
4+
// with filter
5+
6+
#daysBetweenPeriods =
7+
VAR daysBetweenPeriods =
8+
CALCULATE (
9+
LASTDATE ( ObjectClosedDate[ClosedDate] ),
10+
FILTER (
11+
ALLEXCEPT ( ObjectClosedDate, ObjectClosedDate[Type] ),
12+
ObjectClosedDate[ClosedDate] < EARLIER ( ObjectClosedDate[ClosedDate] )
13+
)
14+
)
15+
RETURN
16+
DATEDIFF ( daysBetweenPeriods, ObjectClosedDate[ClosedDate] , DAY )

0 commit comments

Comments
 (0)