The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I want to format the month with two digits by using the FORMAT function, but the result wasn't expected.
DAX: FORMAT ( 1 , "MM")
Result: 12
The result I expected should be 01
Solved! Go to Solution.
You have to put in a [Date] instead of 1. Example:
=FORMAT(DATEVALUE("30.11.2023");"MM")
You will get 11 for the month-Number.
You have to put in a [Date] instead of 1. Example:
=FORMAT(DATEVALUE("30.11.2023");"MM")
You will get 11 for the month-Number.
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |