Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
87 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |