DAX

APPROXIMATEDISTINCTCOUNT function in DAX with Examples

The APPROXIMATEDISTINCTCOUNT function in DAX is used to approximate the number of distinct values in a column, especially when dealing with large datasets where exact counts might be computationally expensive. This function is part of Power BI’s efforts to enhance performance by using approximation techniques when calculating distinct values. Syntax When to Use APPROXIMATEDISTINCTCOUNT Example …

APPROXIMATEDISTINCTCOUNT function in DAX with Examples Read More »

TOTALYTD and DATESYTD Functions in Power BI DAX

In Power BI DAX, both TOTALYTD and DATESYTD functions are used for year-to-date calculations, but they serve slightly different purposes and are used in different contexts. Here’s a detailed comparison along with examples. 1. TOTALYTD The TOTALYTD function is used to calculate the year-to-date total for a given measure or expression. It simplifies the process …

TOTALYTD and DATESYTD Functions in Power BI DAX Read More »

KEEPFILTERS and REMOVEFILTERS in Power BI

In Power BI DAX, both KEEPFILTERS and REMOVEFILTERS are functions used to manipulate filters within calculations. Let’s delve into each with an example: 1. KEEPFILTERS: The KEEPFILTERS function is used to preserve existing filters while applying new filters within a calculation. It ensures that only the specified filters are applied, keeping all other filters intact. …

KEEPFILTERS and REMOVEFILTERS in Power BI Read More »