March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I want to understand why when I use SELECTEDVALUE and MAX the columns from Calendar table is being duplicated by each "Month Name"
MAX:
SELECTEDVALUE:
Normal view :
Relationship:
I'm trying to calculate on each row the amount of revenue from the begining of the FY & Q column.
Hope you can help me.
Thanks.
Solved! Go to Solution.
Whoops, sorry, I missed that. Give this a try:
__TEST =
VAR _Quarter = SELECTEDVALUE ( 'Calendar'[FY & Q] )
VAR _Start = CALCULATE ( MIN ( 'Calendar'[Date] ), ALL ( 'Calendar' ), 'Calendar'[FY & Q] = _Quarter )
RETURN
CALCULATE (
[_Actual Rev],
DATESINPERIOD ( Calendar[Date], _Start, 1, MONTH )
)
Hi,
Please try this, generate the month number first and the use this, depending on you FY start date. This is for an year running July to June
Whoops, sorry, I missed that. Give this a try:
__TEST =
VAR _Quarter = SELECTEDVALUE ( 'Calendar'[FY & Q] )
VAR _Start = CALCULATE ( MIN ( 'Calendar'[Date] ), ALL ( 'Calendar' ), 'Calendar'[FY & Q] = _Quarter )
RETURN
CALCULATE (
[_Actual Rev],
DATESINPERIOD ( Calendar[Date], _Start, 1, MONTH )
)
Try it with time intelligence rather than string matching.
__TEST =
CALCULATE (
[_Actual Rev],
DATESINPERIOD ( Calendar[Date], STARTOFQUARTER ( Calendar[Date] ), 1, MONTH )
)
Hi @jdbuchanan71 ,
It doesn't work with time intelligence because is FISCAL QUARTER and not regular/Calendar Quarter.
The Year Starts in September, not in January. so Same criteria for the quarters
Fiscal Period:
Fiscal Quarter:
Regards.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |