Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Everyone,
I hope you are all doing well,
I am stuck at a problem and can't find a ways out. I have a sample table with shops name, target and date. Based on the target a dax measure is written which which will define the category for that particular shop.
for example if I select date between 1 december, 20222 to 2 decemeber 2022 than the category of a1 store will be "D" however if choose date upto 3 december , 2022 the category of a1 store will be "A". Following dax is used to assign the category.
--------------------------------------------------------------------------------
Now I want to count the total number of stores fall in a specefic category based show the total against those stores with respect to the chosen date and show blank in total for category and for count.
The output should be like this.
Kindly help
Solved! Go to Solution.
Hi @spartansquad
Please refer to attached sample file with the solution
Count of Category =
VAR CurrentCategory = [Category]
RETURN
SUMX (
ALLSELECTED ( 'Table'[Shop] ),
IF (
[Category] = CurrentCategory,
1
)
)
It worked for me thank you
Hi @spartansquad
Please refer to attached sample file with the solution
Count of Category =
VAR CurrentCategory = [Category]
RETURN
SUMX (
ALLSELECTED ( 'Table'[Shop] ),
IF (
[Category] = CurrentCategory,
1
)
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
15 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |