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.
Solved! Go to Solution.
Hi @Anonymous ,
Please update the formula of measure as below and check if it can return the expected result.
Amt3 =
VAR Amt1 =
CALCULATE (
[measure],
FILTER ( 'Calendar', MOD ( 'Calendar'[Fiscal Week num], 13 ) = 0 ),
ALL ( 'yourfacttable' )
)
VAR Amt2 =
CALCULATE (
[measure],
FILTER ( 'Calendar', 'Calendar'[get_current_week] = TRUE () ),
ALL ( 'yourfacttable' )
)
RETURN
IF ( MOD ( MAX ( 'Calendar'[Fiscal Week num] ), 13 ) = 0, Amt1, Amt2 )
If the above one can't help you figure out, please provide some raw data in your table (exclude sensitive data) with Text format, the formula of [measure] and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Anonymous ,
Please update the formula of measure as below and check if it can return the expected result.
Amt3 =
VAR Amt1 =
CALCULATE (
[measure],
FILTER ( 'Calendar', MOD ( 'Calendar'[Fiscal Week num], 13 ) = 0 ),
ALL ( 'yourfacttable' )
)
VAR Amt2 =
CALCULATE (
[measure],
FILTER ( 'Calendar', 'Calendar'[get_current_week] = TRUE () ),
ALL ( 'yourfacttable' )
)
RETURN
IF ( MOD ( MAX ( 'Calendar'[Fiscal Week num] ), 13 ) = 0, Amt1, Amt2 )
If the above one can't help you figure out, please provide some raw data in your table (exclude sensitive data) with Text format, the formula of [measure] and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards