Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a column insurance_exp_date which contains expiry dates form which i want to count the based on the date slicer which will be the ones that are expiring in next 30 days, the ouput can be the count of the insurance_exp_date or can be flagged.
but when I am using the slicer i get wrong values
Solved! Go to Solution.
Hi @lancemac_1 ,
You might consider creating an un-connected table to hold all the values of the slicer.
Table = CALENDAR(<StartDate>,<EndDate>)
Then create a measure like:
Measure =
VAR _selected_date =
MAX ( 'Table'[Date] )
VAR _30days_date = _selected_date + 30
VAR _count =
CALCULATE (
COUNTROWS ( 'YourTableName' ),
'YourTableName'[insurance_exp_date] >= _selected_date
&& 'YourTableName'[insurance_exp_date] <= _30days_date
)
RETURN
_count
Now, you can use the measure in your visuals to display the count of insurance policies expiring in the next 30 days. If you're still experiencing issues with the slicer, please provide more information about your data model and the slicer configuration, so I can better understand the problem and help you find a solution.
How to Get Your Question Answered Quickly - Microsoft Fabric Community
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @lancemac_1 ,
You might consider creating an un-connected table to hold all the values of the slicer.
Table = CALENDAR(<StartDate>,<EndDate>)
Then create a measure like:
Measure =
VAR _selected_date =
MAX ( 'Table'[Date] )
VAR _30days_date = _selected_date + 30
VAR _count =
CALCULATE (
COUNTROWS ( 'YourTableName' ),
'YourTableName'[insurance_exp_date] >= _selected_date
&& 'YourTableName'[insurance_exp_date] <= _30days_date
)
RETURN
_count
Now, you can use the measure in your visuals to display the count of insurance policies expiring in the next 30 days. If you're still experiencing issues with the slicer, please provide more information about your data model and the slicer configuration, so I can better understand the problem and help you find a solution.
How to Get Your Question Answered Quickly - Microsoft Fabric Community
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |