Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
i have data table values and date column
Table 1
sales period flag
450 01-03-2021 1
234 01-04-2021 2
450 01-05-2021 3
234 01-06-2021 4
450 01-07-2021 5
234 01-08-2021 6
i am trying to get value june month value on using dax filter
junval=calculate(sum(sales),filter(table1,table1[period]='01-06-2021'))
but this measure not working . any idea how to get values based on the date column
Solved! Go to Solution.
If your period is stored as a text data type, then I'd expect this to work:
junval =
CALCULATE (
SUM ( table1[sales] ),
FILTER ( table1, table1[period] = "01-06-2021" )
)
Note that sales needs to table1[sales] and I used " instead of '.
If your period is stored as a text data type, then I'd expect this to work:
junval =
CALCULATE (
SUM ( table1[sales] ),
FILTER ( table1, table1[period] = "01-06-2021" )
)
Note that sales needs to table1[sales] and I used " instead of '.
Then you can use DATE ( 2021, 6, 1 ) instead of "01-06-2021" or else the month = 6 approach @Jihwan_Kim suggests.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 8 | |
| 7 |