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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
lavadba
Microsoft Employee
Microsoft Employee

Need help on the DAX formulation

I would like to prepare a PBI report with below parameter.

 

  • Net New – Any user who used the Application in the last month and hasn't ever used before.

  • Any user who used Application in the last month (e.g., Sep 2022), but didn’t use it for over 6 months before Last month (e.g., didn’t use in the timeframe of Aug –Mar 2022).

Any body can help on how to prepare the DAX formula for above condition.

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @lavadba ,

 

I can't get enough details from your screen shot. Could you please provide more details about your data? Such as another month and your source table.

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

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

Hi v-jianboli,

Please find the link below which contains the sample data.

 

https://1drv.ms/u/s!AviWXdHQvbntpEuJaStqa9SuESUf?e=iaIqRp

 

Below conditions are is the requirement to create a trend chart for users.

Trend chart showing monthly usage trends for the following personas of users:

o Net New – Any user who used at all before application in the focus month and hasn't ever used application.

o Long-Regained - Any user who used application in the focus month (e.g., Sep 2022), but didn’t use it for over 6 months before focus month (e.g., didn’t use in the timeframe of Jul –Feb 2022) AND used it at least once before 6 months (i.e. before Feb 2022).

o Short-Regained - Any user who used application in the focus month (e.g., Sep 2022), but didn’t use it in 1 months before focus month (e.g., didn’t use in the timeframe of July 2022) AND used it between the last 2 to 6 months period (e.g., used it at least once in the period of June 2022 - Feb 2022).

 

lavadba
Microsoft Employee
Microsoft Employee

I am unable to upload the pbix file here.  attaching the screen shot of the data. please let me know is there any other way.

lavadba_0-1665619802871.png

 

 

v-jianboli-msft
Community Support
Community Support

Hi @lavadba

 

Based on your description, I have created a simple sample:

vjianbolimsft_1-1665392345732.png

Please try:

First create three measures:

 

Count Last Month = COUNTX(FILTER('Table',MONTH([Date])=MONTH(TODAY())-1),[User])

Count Before = COUNTX(FILTER('Table',MONTH([Date])<MONTH(TODAY())-1),[User])

Count 6 Month Before Last Month = COUNTX(FILTER('Table',MONTH([Date])<MONTH(TODAY())-1&&MONTH([Date])>MONTH(TODAY())-8),[User])

 

 

Then create a new table with [User] Column and rename it:

vjianbolimsft_1-1665393331023.png

 

Apply the measures to the visual level filter:

vjianbolimsft_0-1665393282997.png

Recreate a new table for users who didn’t use it for over 6 months before Last month and apply filter:

 

vjianbolimsft_4-1665394236356.png

Final output:

vjianbolimsft_5-1665394269575.png

Best Regards,

Jianbo Li

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

Jihwan_Kim
Super User
Super User

Hi,

I usually try to solve this types of problem by using INTERSECT and EXCEPT DAX functions.

If possible, please share your sample pbix file's link here, and then I can try to look into it to come up with a proposal.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors