Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
select MAX(SeqID) from [dbo].[CT]
where [MonthId]=1
Here, CT is a calendar table.
Solved! Go to Solution.
Hi @Anonymous
try this
Measure = calculate(MAX(CT[SeqID]);CT[MonthId]=1)
Hi @Anonymous ,
Try CALCULATE (MAX(CT[SeqID], CT[MonthID] = 1)
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Please help in converting below SQL query to DAX-
Select A.*,(Currentmonth-1) As PreviousMonth from ( select max([SeqID])AS Currentmonth
from [dbo].[CT]
where [Month]=1)A
Hi @Anonymous ,
Try CALCULATE (MAX(CT[SeqID], CT[MonthID] = 1)
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Hi @Anonymous
try this
Measure = calculate(MAX(CT[SeqID]);CT[MonthId]=1)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 45 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 83 | |
| 70 | |
| 38 | |
| 28 | |
| 26 |