Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Time Function

Hello to you all, come to ask for assistance.

Firstly, english isn't my mohter language, so i feel a bit confused if i'm being clear.

I'll try to give many details as possible.

 

I'm having some problems with time intlligence;

As it sees, I want to make the bar graph interactive with the
stampcards. As it shows in the pics.

 

 

dslxco_2-1637851867893.png

 

dslxco_0-1637851794761.png    


When you have any interaction with the bar graph every other views at the dashboard turn error.

 

dslxco_5-1637853252992.pngdslxco_6-1637853273730.png

 

Those are the dax formulas in use:

 

 

 

 

¹%Over90 MoM% =
IF(
ISFILTERED('PERFIL_RENEG'[DT_BASE]),
ERROR("Medidas rápidas de inteligência de tempo somente podem ser agrupadas ou filtradas pela hierarquia de data fornecida pelo Power BI ou pela coluna de data primária."),
VAR __PREV_MONTH = CALCULATE([¹%Over90], DATEADD('PERFIL_RENEG'[DT_BASE].[Date], -1, MONTH))
RETURN
DIVIDE([¹%Over90] - __PREV_MONTH, __PREV_MONTH)
)
¹%Over15-90 MoM% =
IF(
ISFILTERED('PERFIL_RENEG'[DT_BASE]),
ERROR("Medidas rápidas de inteligência de tempo somente podem ser agrupadas ou filtradas pela hierarquia de data fornecida pelo Power BI ou pela coluna de data primária."),
VAR __PREV_month = CALCULATE([¹%Over15-90], DATEADD('PERFIL_RENEG'[DT_BASE].[Date], -1, MONTH))
RETURN
DIVIDE([¹%Over15-90] - __PREV_month, __PREV_month)
)
¹AtvMoM =
IF(
ISFILTERED('PERFIL_RENEG'[DT_BASE]),
ERROR("Medidas rápidas de inteligência de tempo somente podem ser agrupadas ou filtradas pela hierarquia de data fornecida pelo Power BI ou pela coluna de data primária."),
VAR __PREV_MONTH =
CALCULATE(
SUM('PERFIL_RENEG'[Saldo Ativo]),
DATEADD('PERFIL_RENEG'[DT_BASE].[Date], -1, MONTH)
)
RETURN
DIVIDE(SUM('PERFIL_RENEG'[Saldo Ativo]) - __PREV_MONTH, __PREV_MONTH))

 

 

 Details provided by the BI software show this:

 

dslxco_3-1637852370961.png

 

It says about the Date Column

 

dslxco_4-1637853164847.png

 

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

 

In your measure, the logic of IF() function is 

vxiaotang_0-1638327345198.png

it means if you filter the column PERFIL_RENEG'[DT_BASE], then the measure will return the error.

¹%Over90 MoM% =
IF(
ISFILTERED('PERFIL_RENEG'[DT_BASE]),
ERROR("Medidas rápidas de inteligência de tempo somente podem ser agrupadas ou filtradas pela hierarquia de data fornecida pelo Power BI ou pela coluna de data primária."),
VAR __PREV_MONTH = CALCULATE([¹%Over90], DATEADD('PERFIL_RENEG'[DT_BASE].[Date], -1, MONTH))
RETURN
DIVIDE([¹%Over90] - __PREV_MONTH, __PREV_MONTH)
)

 so you can try this measure, in this measure, if you filter the column, then it  will return the value of DIVIDE([¹%Over90] - __PREV_MONTH, __PREV_MONTH)

¹%Over90 MoM% =
VAR __PREV_MONTH = CALCULATE([¹%Over90], DATEADD('PERFIL_RENEG'[DT_BASE].[Date], -1, MONTH))
RETURN
IF(
ISFILTERED('PERFIL_RENEG'[DT_BASE]),
DIVIDE([¹%Over90] - __PREV_MONTH, __PREV_MONTH)
)

  

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.